0.1.3 • Published 6 years ago

array-set v0.1.3

Weekly downloads
23
License
MIT
Repository
github
Last release
6 years ago

array-set

NOTE: array-set was renamed to @extra-array/set. NPM

Set array elements to a value.

const set = require('array-set');
// set(<array>, <value>, [start=0], [stop=array.length], [step=1])

set([0, 0], 10);
// [10, 10]
set(new Array(32), 0);
// [0, 0, ...] (32 zeros)
set(set(new Array(4), 0, 0, 4, 2), 1, 1, 4, 2);
// [0, 1, 0, 1]
0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago