Projekt

Obecné

Profil

Stáhnout (547 Bajtů) Statistiky
| Větev: | Revize:
1
'use strict';
2
// 22.1.3.9 Array.prototype.findIndex(predicate, thisArg = undefined)
3
var $export = require('./_export');
4
var $find = require('./_array-methods')(6);
5
var KEY = 'findIndex';
6
var forced = true;
7
// Shouldn't skip holes
8
if (KEY in []) Array(1)[KEY](function () { forced = false; });
9
$export($export.P + $export.F * forced, 'Array', {
10
  findIndex: function findIndex(callbackfn /* , that = undefined */) {
11
    return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
12
  }
13
});
14
require('./_add-to-unscopables')(KEY);
(111-111/303)