@supercharge/collections
Advanced tools
Changelog
2.0.0 - 2020-05-21
.all()
to retrieve the result
await Collect([1, 2, 3]).map(...).filter().all()
await Collect([1, 2, 3]).map(...).filter()
xSeries
methods become the default and were removed
mapSeries
becomes map
and the mapSeries
method was removedxSeries
methods because I typically don’t want to handle the side-effects of parallel processing on a large collections. That’s why the methods iterating over the items in sequence are the new default.Note: there are no new xParallel
methods to fill the gap for the missing methods processing async tasks in parallel. If you need the parallel methods, I’m happy to support you on a pull request.