-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iterator support for _.toArray #2448
Comments
@jdalton Do you mean Array.from ? |
I mean something like iteratorToArray which can be used as part of toArray.
Ya I get that, but Array.from({ 'a': 1 })
// => []
_.toArray({ 'a': 1 })
// => [1] |
Rather than reimplementing |
Because The lines savings aren't worth the inconsistent support. |
Will only make sense if combined with #2147. |
I think support for converting iterators to arrays would be a nice to have for
_.toArray
.The text was updated successfully, but these errors were encountered: