in-groups-of
Return an array of arrays in groups of N
Installation
$ component install component/in-groups-of
Example
var nums = 12345678910; // => [[1,2,3,4,5], [6,7,8,9,10]] // => [[1,2,3,4], [5,6,7,8], [9,10]] //=> [[1,2], [3,4], [5,6], [7,8], [9,10]]
License
MIT