Thanks to visit codestin.com
Credit goes to github.com

Skip to content

OpenTak/marray

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Marray

Very quick multi-arrays:

Marray.two(2,2) // => [
//   [undefined, undefined],
//   [undefined, undefined]
// ]

Marray.two(3, 3, () => []) // => [
//   [[], [], []],
//   [[], [], []],
//   [[], [], []]
// ]

Marray.two(3, 3, (x, y) => `${x}, ${y}`) // => [
//   ['0, 0', '0, 1', '0, 2'],
//   ['1, 0', '1, 1', '1, 2'],
//   ['2, 0', '2, 1', '2, 2']
// ]

The function for values gives back the x and y coordinates.

The entire point of this package is to make simple 2d arrays.

About

Quick and dirty 2d arrays

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published