first
This commit is contained in:
12
node_modules/core-js/internals/array-for-each.js
generated
vendored
Normal file
12
node_modules/core-js/internals/array-for-each.js
generated
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
'use strict';
|
||||
var $forEach = require('../internals/array-iteration').forEach;
|
||||
var arrayMethodIsStrict = require('../internals/array-method-is-strict');
|
||||
|
||||
var STRICT_METHOD = arrayMethodIsStrict('forEach');
|
||||
|
||||
// `Array.prototype.forEach` method implementation
|
||||
// https://tc39.es/ecma262/#sec-array.prototype.foreach
|
||||
module.exports = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */) {
|
||||
return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
||||
// eslint-disable-next-line es/no-array-prototype-foreach -- safe
|
||||
} : [].forEach;
|
Reference in New Issue
Block a user