blow-chunks
v1.0.1
Published
split an array into arbitrary length pieces
Downloads
28
Readme
blow-chunks

split an array into arbitrary length pieces
this doesn't modify the array prototype. which means you have to invoke it by using function.prototype.call, kinda sucks, but hey...
install
npm install --save blow-chunksusage
var chunk = require('blow-chunks');
chunk([1, 2, 3, 4, 5, 6], 2);
// [[1, 2], [3, 4], [5, 6]]