JSPM

json-array-split

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 119
  • Score
    100M100P100Q10331F
  • License MIT

Splits a json array into specified no. of elements

Package Exports

  • json-array-split

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (json-array-split) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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

  1. nodejs > 0.10
  2. npm

##License MIT License