/jhs-vec

Primary LanguageJavaScript

jhs-vec

Description

An immutable vector library

Setup

npm install
npm run build

Test

npm test

or to watch:

npm run test:w

Usage

import { Vector, add } from 'jhs-vec'
let result = add([1, 2, 3], Vector(4, 5, 6)) // => Vector(5, 7, 9)
console.log(result)