Array findLast() and findLastIndex()
Newly available since 2022-08-23 (baseline low)
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.
Compatibility
- Chrome 97 Released on 2022-01-04
- Chrome Android 97 Released on 2022-01-04
- Edge 97 Released on 2022-01-06
- Firefox 104 Released on 2022-08-23
- Firefox for Android 104 Released on 2022-08-23
- Safari 15.4 Released on 2022-03-14
- Safari on iOS 15.4 Released on 2022-03-14
Specifications
- 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