@liveblocks/react-ui
Version:
A set of React pre-built components for the Liveblocks products. Liveblocks is the all-in-one toolkit to build collaborative products like Figma, Notion, and more.
17 lines (14 loc) • 331 B
JavaScript
function findLastIndex(array, predicate) {
let index = array.length - 1;
while (index >= 0) {
const element = array[index];
if (element && predicate(element)) {
return index;
}
index--;
}
return -1;
}
exports.findLastIndex = findLastIndex;
//# sourceMappingURL=find-last-index.cjs.map
;