Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 317 Bytes

README.md

File metadata and controls

17 lines (11 loc) · 317 Bytes

array.chunk

Build Status

Split array/TypedArray to chunks of given size.

Usage

const chunks = require('array.chunk');

// [[1, 2], [3, 4], [5]]
console.log(chunks([1, 2, 3, 4, 5], 2));

LICENSE

ISC