I wish I could stop the iteration early by returning something like pMap.stop
(a Symbol) from the iterator.
This is basically the same request as sindresorhus/p-each-series#3
For now, I have to throw an error on purpose just to break it. Thankfully, I don't need the return value of p-map
anyway.
But with this feature, the parts of the array that weren't computed yet could be set to undefined
, or pMap.uncomputed
(another Symbol), or even be specified by a valueForUncomputedEarlyStop
option.
Can I do a PR?
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too