JSPM

array.chunk

1.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 313
  • Score
    100M100P100Q88239F
  • License ISC

Split array to chunks

Package Exports

  • array.chunk

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 (array.chunk) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

array.chunk

Build Status

Split array/TypedArray to chunks of given size.

Usage

const chunks = require('array.chunk');

// [[1, 2], [3, 4], [5]]
console.log(chunks([1, 2, 3, 4, 5], 2));

LICENSE

ISC