proposal-iterator-helpers
proposal-iterator-helpers copied to clipboard
Methods for working with iterators in ECMAScript
It'd be very useful to have something that pushes to an iterable, and in fact, it's pretty critical for adapting any push-based API to async iterators. Of course, there's not...
Right now if you do ```js let bounded = iter.take(3); bounded.next(); bounded.next(); bounded.next(); ``` this will not close `iter`. You have to call `bounded.next()` again to actually close out the...
Fixes #219. Draft until I do the same for async `take`.
A slight tweak to https://github.com/tc39/proposal-iterator-helpers/pull/215. The reason to use PromiseResolve is to get the fast-path when the value being passed is expected to be a Promise. On this particular line...
Should `iter.take(Infinity)` or `iter.drop(0)` return `iter` instead of wrapping it unnecessarily?
The async versions of the consuming helpers - `toArray`, etc - are specified as "built-in async function"s. But I don't think we've ever actually said what that means anywhere. The...
As written today, the return value of `forEach` is undefined. I believe this would miss an opportunity to return the `value` from the final `{done: true, value}` iteration result of...
Fixes #173. I really do not want to merge this, but if the committee is so inclined, this should do it. /cc @erights
- [x] all open PRs merged or rejected - [x] all open issues addressed or closed - [x] spec text finalised - [ ] reviewer sign-off - [ ] Richard...
Fixes #115. Option 1: make a gross accessor.