15 lines
315 B
JavaScript
15 lines
315 B
JavaScript
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports.default = findLastIndex;
|
|
function findLastIndex(array, callback) {
|
|
for (var i = array.length - 1; i >= 0; i--) {
|
|
if (callback(array[i])) {
|
|
return i;
|
|
}
|
|
}
|
|
return -1;
|
|
}
|
|
//# sourceMappingURL=findLastIndex.js.map
|