JSPM

pull-batch

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3332
  • Score
    100M100P100Q118828F
  • License ISC

Transform arrays of objects into arrays with a maximum length

Package Exports

  • pull-batch

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

Readme

pull-batch

Transform arrays of objects into arrays with a maximum length

Install

$ npm install pull-batch --save

Use

const pullBatch = require('pull-batch')

const maxLength = 5

pull(
  pull.values([1, 2, 3, 4, 5, 6, 7, 8, 9, 10])
  pullBatch(maxLength),
  sink
)

License

ISC