batch-reduce

1.0.1 • Public • Published

batch-reduce

npm install batch-reduce

Usage:

const items = [/*list of items to be reduced*/];
const batchSize = 100; // default batch-size
const batchOp = (lastVal, batch) => {
  // do something with batch and return val
};

const reducedVal = batchReduce(
 items, batchSize, batchOp, val
);

/batch-reduce/

    Package Sidebar

    Install

    npm i batch-reduce

    Weekly Downloads

    2

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    3.36 kB

    Total Files

    5

    Last publish

    Collaborators

    • kapv89