ES6
Static Array methods
Array.from()
If a value is iterable (as all Array-like DOM data structure are by now), you can also use the spread operator (…) to convert it to an Array:
Array.of()
This returns an array of the passed parameters
Array.prototype methods
Array.prototype.fill()
Array.prototype.copyWithin()
The method signature is:
It copies the elements whose indices are in the range [start,end) to index target and subsequent indices. If the two index ranges overlap, care is taken that all source elements are copied before they are overwritten. I am confused as to how this is in any way useful.
Searching for elements
-
Array.prototype.findIndex()
-
Array.prototype.find()
Iteration
-
Array.prototype.entries()
-
Array.prototype.values()
-
Array.prototype.keys()
ES2016
Array.prototype.includes()
Tells you if array includes a certain element: