shim.js 258 B

123456789
  1. "use strict";
  2. var findIndex = require("../find-index/shim");
  3. // eslint-disable-next-line no-unused-vars
  4. module.exports = function (predicate /*, thisArg*/) {
  5. var index = findIndex.apply(this, arguments);
  6. return index === -1 ? undefined : this[index];
  7. };