1.0.1 • Published 11 months ago

xirtam-node v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

Xirtam

Xirtam is a library base on a class call Matrix that let you use it like if it where a matrix

Installation

Use the class with the deno url

npm

npm i xirtam

pnpm

pnpm i xirtam

Usage/Examples

import { Matrix } from 'xirtam'

type Tuple = [number, number]

const matrix = new Matrix<Tuple>([0, 1], [1, 2], [2, 3])

console.log(matrix.hasItem([0, 1])) // Expected: true

Other methods

import { Matrix } from 'xirtam'

const arr1 = [0,1]
const arr2 = [0,1]
const test = [0,1]

console.log(Matrix.compare(arr1, test)) // Expected: true
console.log(Matrix.compareMany(arr1, arr2, test)) // Expected: true

License

MIT

1.0.1

11 months ago

1.0.0

11 months ago