shim.js 216 B

12345678
  1. 'use strict';
  2. var findIndex = require('../find-index/shim');
  3. module.exports = function (predicate/*, thisArg*/) {
  4. var index = findIndex.apply(this, arguments);
  5. return (index === -1) ? undefined : this[index];
  6. };