MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / findLast

Function findLast

src/shared/array.ts:19–22  ·  view source on GitHub ↗
(array: Array<T>, predicate: (value: T, index: number, obj: T[]) => boolean)

Source from the content-addressed store, hash-verified

17}
18
19export function findLast<T>(array: Array<T>, predicate: (value: T, index: number, obj: T[]) => boolean): T | undefined {
20 const index = findLastIndex(array, predicate)
21 return index === -1 ? undefined : array[index]
22}

Callers 3

getVisibleInstanceMethod · 0.90
getEffectiveApiHistoryFunction · 0.90
ChatViewComponentFunction · 0.90

Calls 1

findLastIndexFunction · 0.85

Tested by

no test coverage detected