es6.array.reduce.js 408 B

12345678910
  1. 'use strict';
  2. var $export = require('./_export');
  3. var $reduce = require('./_array-reduce');
  4. $export($export.P + $export.F * !require('./_strict-method')([].reduce, true), 'Array', {
  5. // 22.1.3.18 / 15.4.4.21 Array.prototype.reduce(callbackfn [, initialValue])
  6. reduce: function reduce(callbackfn /* , initialValue */) {
  7. return $reduce(this, callbackfn, arguments.length, arguments[1], false);
  8. }
  9. });