Array.of creates an array with the given arguments as elements
dont mix it up with Array(10), where the argument is the array length
puts all arguments into array elements
takes any kind and number of arguments
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
27 April 2015
Stats
3 tests to solve