Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
17 lines
312 B
JavaScript
17 lines
312 B
JavaScript
// Module ID: 7135
|
|
// Function ID: 7136
|
|
// Dependencies: []
|
|
// Exports: findLastIndex
|
|
|
|
// Module 7135
|
|
|
|
export const findLastIndex = function findLastIndex(arg0, fn) {
|
|
let diff = arg0.length - 1;
|
|
if (0 <= diff) {
|
|
while (!fn(arg0[diff])) {
|
|
diff = diff - 1;
|
|
}
|
|
return diff;
|
|
}
|
|
return -1;
|
|
};
|