Skip to content

fractaltech/batch-reduce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

batch-reduce

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published