You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
403 B
JavaScript
11 lines
403 B
JavaScript
7 years ago
|
'use strict';
|
||
|
var $export = require('./_export')
|
||
|
, $forEach = require('./_array-methods')(0)
|
||
|
, STRICT = require('./_strict-method')([].forEach, true);
|
||
|
|
||
|
$export($export.P + $export.F * !STRICT, 'Array', {
|
||
|
// 22.1.3.10 / 15.4.4.18 Array.prototype.forEach(callbackfn [, thisArg])
|
||
|
forEach: function forEach(callbackfn /* , thisArg */){
|
||
|
return $forEach(this, callbackfn, arguments[1]);
|
||
|
}
|
||
|
});
|