]> git.r.bdr.sh - rbdr/dotfiles/blob - atom/packages/vim-mode/node_modules/grim/node_modules/emissary/node_modules/es6-weak-map/node_modules/es5-ext/array/#/find/shim.js
c7ee9069a9a30804882e5791065782c3d8a30fa3
[rbdr/dotfiles] / atom / packages / vim-mode / node_modules / grim / node_modules / emissary / node_modules / es6-weak-map / node_modules / es5-ext / array / # / find / shim.js
1 'use strict';
2
3 var findIndex = require('../find-index/shim');
4
5 module.exports = function (predicate/*, thisArg*/) {
6 var index = findIndex.apply(this, arguments);
7 return (index === -1) ? undefined : this[index];
8 };