expo-router
Version:
Expo Router is a file-based router for React Native and web applications.
21 lines (19 loc) • 437 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "findLastIndex", {
enumerable: true,
get: function() {
return findLastIndex;
}
});
function findLastIndex(array, callback) {
for(let i = array.length - 1; i >= 0; i--){
if (callback(array[i])) {
return i;
}
}
return -1;
}
//# sourceMappingURL=findLastIndex.js.map