index.mjs 746 B

123456789101112131415161718
  1. import callBind from 'call-bind';
  2. import callBound from 'call-bind/callBound';
  3. import RequireObjectCoercible from 'es-abstract/2023/RequireObjectCoercible.js';
  4. import getPolyfill from 'array.prototype.findlastindex/polyfill';
  5. const bound = callBind.apply(getPolyfill());
  6. const $slice = callBound('Array.prototype.slice');
  7. // eslint-disable-next-line no-unused-vars
  8. export default function findLastIndex(array, predicate) {
  9. RequireObjectCoercible(array);
  10. return bound(array, $slice(arguments, 1));
  11. }
  12. export { default as getPolyfill } from 'array.prototype.findlastindex/polyfill';
  13. export { default as implementation } from 'array.prototype.findlastindex/implementation';
  14. export { default as shim } from 'array.prototype.findlastindex/shim';