2024
1 featuresThe Array.fromAsync() static method copies items from an async iterable object to make a new array.
2023
1 featuresThe toReversed(), toSorted(), toSpliced(), and with() methods of arrays and typed arrays return changed copies of arrays. They stand in contrast to methods such as sort() or reverse() that change arrays in place.
2022
2 featuresThe findLast() and findLastIndex() methods of arrays and typed arrays search an array in reverse order for the first item that satisfies a test function.
The at() method of arrays and typed arrays returns the item at an index, including negative indices for getting items relative to the end of an array. Also known as the relative indexing method.
2020
2 featuresThe flat() and flatMap() methods for arrays creates a new array such that each nested array item is concatenated into it.
Stable array sort() function
2018
1 featuresArrays are iterable with the for … of statement and enumerable with the methods entries(), keys(), and values().
2016
6 featuresThe copyWithin() method of arrays and typed arrays shifts or copies items of an array to another index of the array without changing its length.
The fill() method of arrays and typed arrays sets all or some items of an array to a given a value.
The find() and findIndex() methods of arrays and typed arrays search an array for the first item that satisfies a test function.
The includes() method of arrays and typed arrays returns whether a given value appears in the array.
The Array.from() and typed array .from() static methods copy items from an iterable or array-like object to make a new array.
The Array.of() and typed array .of() static methods create new arrays from the values of any number of arguments.
2015
4 featuresArrays are ordered lists of JavaScript values.
Array iteration methods
The array splice() method changes an array in-place. You can use it to delete items, overwrite items, or insert items, starting from an index.
The Array.isArray() static method checks whether a value is an array.