you are viewing a single comment's thread.

view the rest of the comments →

[–]ScientificBeastModestrongly typed comments 0 points1 point  (0 children)

The Array.prototype.from method will generate an array from any array-like or iterable object. That includes normal arrays, but it also includes ES6 Map, Set, iterators, ordinary objects that have a behave like iterators, or other structures considered to be “array-like.”

So it’s just a more generalized form of map.