FlatTap
Open
- Dominant language
- JavaScript
- Stars
- 3.4k
- Forks
- 145
- PR merge metrics
- No merged PRs in 30d
Description
When dealing with promises it would be nice to be able to do a `stream.flatTap(_(save))` which would disregard the output but wait for the promise to resolve. (shorthand for `stream.flatMap(item => _(save(item).then(() => item)))`
Contributor guide
Research direction
The issue names no files or tests; start from the stream API's flatMap implementation and its operator tests. Add flatTap with the described promise-waiting behavior while preserving each original item, then verify the operator's promise and output semantics in the relevant stream tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- stream-processing
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100