Array.from converts an array-like object or list into an Array
call Array.from with an array-like object
a DOM node`s classList object can be converted
convert a NodeList to an Array and filter() works on it
custom conversion using a map function as second param
we can modify the value before putting it in the array
and we also get the object`s key as second parameter
Related Katas
Array API
array.sort()basicsarray.sort()can take a compare functionarray.shift()(as introduced in ES3)array.push()(as introduced in ES3)Array.from()Array.of()array.fill()array.find()array.findIndex()array.entries()array.keys()array.values()array.includes()array.toReversed()
Difficulty Level
TBD
First Published
23 April 2015
Stats
5 tests to solve