GHHG10's picture
download
raw
291 Bytes
export function findLast<T>(
items: readonly T[],
predicate: (item: T, index: number, items: readonly T[]) => boolean,
): T | undefined {
for (let i = items.length - 1; i >= 0; i -= 1) {
const item = items[i]
if (predicate(item, i, items)) return item
}
return undefined
}

Xet Storage Details

Size:
291 Bytes
·
Xet hash:
c62d4eaf4f07a7f4ac4705d3f55c51a8254a05f0e555e84631325e81f80ae2da

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.