PageRenderTime 27ms CodeModel.GetById 18ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

/node_modules/babel-polyfill/node_modules/core-js/library/modules/es6.array.find.js

https://bitbucket.org/worklabschd/bingle_customer2
JavaScript | 14 lines | 12 code | 0 blank | 2 comment | 1 complexity | 939a0f2876031da97a8d5db59eb01242 MD5 | raw file
 1'use strict';
 2// 22.1.3.8 Array.prototype.find(predicate, thisArg = undefined)
 3var $export = require('./_export');
 4var $find = require('./_array-methods')(5);
 5var KEY = 'find';
 6var forced = true;
 7// Shouldn't skip holes
 8if (KEY in []) Array(1)[KEY](function () { forced = false; });
 9$export($export.P + $export.F * forced, 'Array', {
10  find: function find(callbackfn /* , that = undefined */) {
11    return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
12  }
13});
14require('./_add-to-unscopables')(KEY);