split-array-into-chunks
v1.0.0
Published
Split array into chunks
Downloads
3
Maintainers
Readme
split-array-into-chunks
Split array/TypedArray to chunks of given size.
Usage
ES5: const chunks = require("split-array-into-chunks");
---- or ---
ES6: import chunks from "split-array-into-chunks";
let array = [1, 2, 3, 4, 5, 6, 7];
console.log(chunks(array, 2));
// [[1, 2], [3, 4], [5, 6], [7]]
LICENSE
ISC