/blow-chunks

split an array into arbitrary length pieces

Primary LanguageJavaScriptThe UnlicenseUnlicense

blow-chunks Build Status Code Climate Test Coverage

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-chunks
usage
var chunk = require('blow-chunks');
chunk([1, 2, 3, 4, 5, 6], 2);
// [[1, 2], [3, 4], [5, 6]]