You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is no builtin, widely supported way to create an array from ES6 Map and Set entities (values or keys). Eventually Array.from will solve this problem, but it is not as widely supported as the data structures.
It would be great if _.toArray were able to fill this gap – not just for Map and Set, but for any iterator. Both Set and Map have .forEach properties, and Map also has values and keys. All of these conform to the iterator protocol.
🍻
The text was updated successfully, but these errors were encountered:
There is no builtin, widely supported way to create an array from ES6 Map and Set entities (values or keys). Eventually Array.from will solve this problem, but it is not as widely supported as the data structures.
It would be great if
_.toArray
were able to fill this gap – not just forMap
andSet
, but for any iterator. BothSet
andMap
have.forEach
properties, andMap
also hasvalues
andkeys
. All of these conform to the iterator protocol.🍻
The text was updated successfully, but these errors were encountered: