Function
findLast
(
array: unknown[],
predicate: (value: unknown, index: number, array: unknown[]) => boolean,
thisArg?: any
)
Source from the content-addressed store, hash-verified
| 569 | thisArg?: any |
| 570 | ): T | undefined; |
| 571 | export function findLast( |
| 572 | array: unknown[], |
| 573 | predicate: (value: unknown, index: number, array: unknown[]) => boolean, |
| 574 | thisArg?: any |
| 575 | ): unknown | undefined { |
| 576 | if (typeof array.findLast === 'function') return array.findLast(predicate, thisArg); |
| 577 | return array.slice().reverse().find(predicate, thisArg); |
| 578 | } |
| 579 | |
| 580 | // Node.js 16 doesn't make this global, but it can still be obtained. |
| 581 | export const DOMException: { |