You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
257 B
10 lines
257 B
4 years ago
|
"use strict";
|
||
|
|
||
|
var findIndex = require("../find-index/shim");
|
||
|
|
||
|
// eslint-disable-next-line no-unused-vars
|
||
|
module.exports = function (predicate/*, thisArg*/) {
|
||
|
var index = findIndex.apply(this, arguments);
|
||
|
return index === -1 ? undefined : this[index];
|
||
|
};
|