Array.from Playground

A Set, a string, a Map, a NodeList or {length: 3} are loose wagons with no locomotive: Array.from builds a new train and Mr. Wiryo loads it one by one, while…

The key idea

Array.from takes iterables AND array-likes; spread only iterables

Common mistakes

Try it in this playground