This repository has been archived by the owner on Oct 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 34
Iterator.from: Accept non-iterable array-like inputs? #155
Comments
Yes, I think they should. |
Non-iterables are handled in |
The entire point of a |
I think the question is confused? |
ha, you're right, my bad - too many issues asking this same question :-). Iterator.from already takes iterator-likes, so it seems fine as-is. |
Yeah, you are right! I was a bit confused. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Spinning this off of tc39/proposal-array-from-async#7.
Iterator.from
andAsyncIterator.from
were inspired byArray.from
.Array.from
accepts not only iterable inputs. It also accepts non-iterable array-like inputs.Should
Iterator.from
andAsyncIterator.from
matchArray.from
and also accept non-iterable array-like inputs?CC: @codehag, @michaelficarra, @ljharb.
#156 is slightly related to this.
The text was updated successfully, but these errors were encountered: