đ 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.