🏠 New in Low Baseline Support: Array findLast() and findLastIndex()

August 23, 2022

caniuse · mdn · [spec]([‘https://tc39.es/ecma262/multipage/indexed-collections.html#sec-array.prototype.findlast’, ‘https://tc39.es/ecma262/multipage/indexed-collections.html#sec-array.prototype.findlastindex’, ‘https://tc39.es/ecma262/multipage/indexed-collections.html#sec-%25typedarray%25.prototype.findlast’, ‘https://tc39.es/ecma262/multipage/indexed-collections.html#sec-%25typedarray%25.prototype.findlastindex’])

The findLast() and findLastIndex() methods of arrays and typed arrays search an array in reverse order for the first item that satisfies a test function.

Source features