Actualizacion maquina principal
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / core-js / internals / array-for-each.js
1 'use strict';
2 var $forEach = require('../internals/array-iteration').forEach;
3 var arrayMethodIsStrict = require('../internals/array-method-is-strict');
4 var arrayMethodUsesToLength = require('../internals/array-method-uses-to-length');
5
6 var STRICT_METHOD = arrayMethodIsStrict('forEach');
7 var USES_TO_LENGTH = arrayMethodUsesToLength('forEach');
8
9 // `Array.prototype.forEach` method implementation
10 // https://tc39.github.io/ecma262/#sec-array.prototype.foreach
11 module.exports = (!STRICT_METHOD || !USES_TO_LENGTH) ? function forEach(callbackfn /* , thisArg */) {
12   return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
13 } : [].forEach;