🚀 Socket Launch Week 🚀 Day 4: Introducing Historical Analytics.Learn More
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

array-2d

Fast 2d array suitable for dynamic programming

1.0.2
latest
Version published
Weekly downloads
4
-50%
Maintainers
1
Weekly downloads
 
Created

array-2d

Fast 2d array suitable for dynamic programming

example

var Array2d = require('array-2d');
var arr = new Array2d(10, 5, 1)
arr.set(3,4,2);
console.log(arr.get(3,4))
console.log(arr.toString());

api

array2d(rows, cols, defaultValue)

Create a new 2d array with the specified rows, columns and default value

arr.get(row, col)

Get the element at position row, column

arr.set(row, col, value)

Set the element at row, column to the specified value

licence

ISC

FAQs

Package last updated on 02 Jul 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts