Skip to content

stream: add toArray helpers#41553

Closed
benjamingr wants to merge 1 commit intonodejs:masterfrom
benjamingr:stream-iterator-helper-toArray
Closed

stream: add toArray helpers#41553
benjamingr wants to merge 1 commit intonodejs:masterfrom
benjamingr:stream-iterator-helper-toArray

Conversation

@benjamingr
Copy link
Member

@benjamingr benjamingr commented Jan 16, 2022

This is the next one and should only land after #41445 does (I'll rebase when it does).

Marking as draft to not take CI resources until that one lands but I'd like reviews :)

This adds the toArray method from iterator helpers and addresses a common use case.

My primary concern is that people don't over-use/abuse it though this is already pretty common with toArray and others on npm with many downloads.

I don't remember if this was in the initial work with @ronag on map so I added a co-authored-by to be on the safe side though I assume this granularity of attribution doesn't really matter to either of us very much.

cc @ronag @nodejs/streams

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-ci PRs that need a full CI run. notable-change PRs with changes that should be highlighted in changelogs. semver-minor PRs that contain new features and should be released in the next minor version. stream Issues and PRs related to the stream subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants