array-chunk
v1.0.0
Published
Chunk array on small pieces
Downloads
980
Readme
array-chunk
Chunk array on small pieces
Install
$ npm install --save array-chunk
Usage
var arrayChunk = require('array-chunk');
arrayChunk([1, 2, 3, 4], 2);
//=> [[1, 2], [3, 4]]
API
arrayChunk(arr, size)
arr
Required
Type: array
| TypedArray
Your array
size
Required
Type: number
Length of nested array , default 1
Related
- flatten-vertex-data − flattens array data.
License
MIT © hzlmn