2017-05-28 00:38:50 +02:00
|
|
|
'use strict';
|
2017-08-14 05:01:11 +02:00
|
|
|
var $export = require('./_export');
|
|
|
|
var $reduce = require('./_array-reduce');
|
2017-05-28 00:38:50 +02:00
|
|
|
|
|
|
|
$export($export.P + $export.F * !require('./_strict-method')([].reduce, true), 'Array', {
|
|
|
|
// 22.1.3.18 / 15.4.4.21 Array.prototype.reduce(callbackfn [, initialValue])
|
2017-08-14 05:01:11 +02:00
|
|
|
reduce: function reduce(callbackfn /* , initialValue */) {
|
2017-05-28 00:38:50 +02:00
|
|
|
return $reduce(this, callbackfn, arguments.length, arguments[1], false);
|
|
|
|
}
|
2017-08-14 05:01:11 +02:00
|
|
|
});
|