1.0.1 • Published 6 years ago

batch-reduce v1.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

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
);
1.0.1

6 years ago

1.0.0

6 years ago