Skip to content
This repository has been archived by the owner on Mar 27, 2020. It is now read-only.

skibz/blow-chunks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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]]