Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

pull-batch

pgte35kISC1.0.0

Transform arrays of objects into arrays with a maximum length

pull, pull-stream, stream, batch

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