Open samsamson33 opened 2 years ago
Array.from() is, in my opinion at least, clearer in meaning than the spread operator with Array.prototype.map(). Also, as it does not create an intermediate array, it appears to be around twice as fast (on firefox).
Array.from()
Array.prototype.map()
Array.from()
is, in my opinion at least, clearer in meaning than the spread operator withArray.prototype.map()
. Also, as it does not create an intermediate array, it appears to be around twice as fast (on firefox).