About
It splits a json array into arrays with specified number of elements.
Usage
var jsonSplit = require('json-array-split')
var splitArr = jsonSplit([{'john':'doe'},{'foo':'bar'},{'bruce':wayne},{'barry':'allen'}],2);
//[ [ { john: 'doe' }, { foo: 'bar' } ],[ { bruce: 'wayne' }, { barry: 'allen' } ] ]
Requirements
- nodejs > 0.10
- npm
License
MIT License