Sha256: e0240d0be157d7cb520d7741c04a8de308be8099cdaeb7967bdec3d5fea0f387

Contents?: true

Size: 719 Bytes

Versions: 12

Compression:

Stored size: 719 Bytes

Contents

'use strict';
var $ = require('../internals/export');
var $find = require('../internals/array-iteration').find;
var addToUnscopables = require('../internals/add-to-unscopables');

var FIND = 'find';
var SKIPS_HOLES = true;

// Shouldn't skip holes
if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });

// `Array.prototype.find` method
// https://tc39.github.io/ecma262/#sec-array.prototype.find
$({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
  find: function find(callbackfn /* , that = undefined */) {
    return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
  }
});

// https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables
addToUnscopables(FIND);

Version data entries

12 entries across 12 versions & 4 rubygems

Version Path
disco_app-0.18.0 test/dummy/node_modules/core-js/modules/es.array.find.js
disco_app-0.18.2 test/dummy/node_modules/core-js/modules/es.array.find.js
condenser-0.0.8 lib/condenser/processors/node_modules/core-js-pure/modules/es.array.find.js
jester-data-8.0.0 node_modules/core-js/modules/es.array.find.js
ezii-os-5.2.1 node_modules/core-js/modules/es.array.find.js
ezii-os-2.0.1 node_modules/core-js/modules/es.array.find.js
ezii-os-1.1.0 node_modules/core-js/modules/es.array.find.js
ezii-os-1.0.0 node_modules/core-js/modules/es.array.find.js
condenser-0.0.7 lib/condenser/processors/node_modules/core-js-pure/modules/es.array.find.js
ezii-os-0.0.0.1.0 node_modules/core-js/modules/es.array.find.js
ezii-os-0.0.0.0.1 node_modules/core-js/modules/es.array.find.js
condenser-0.0.5 lib/condenser/processors/node_modules/core-js-pure/modules/es.array.find.js