0.0.3 • Published 4 years ago

arraynd v0.0.3

Weekly downloads
3
License
ISC
Repository
github
Last release
4 years ago

ArrayN: Lean, fixed multi-dimension array

It's designed to easily creating/iterating multi-dimension arrays.

The usage is extremely straightforward:

    const x = new ArrayX([3, 4])
    x.set([2, 3], 10)
    console.log(x.get([2, 3])) // 10
    console.log(x.get([0, 0])) // undefined
    x.fill(([a, b]) => a * b)
    console.log(x.data) // [0,0,0,0,0,1,2,3,0,2,4,6]
0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago