es6.array.reduce-right.js 427 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')([].reduceRight, true), 'Array', {
  5. // 22.1.3.19 / 15.4.4.22 Array.prototype.reduceRight(callbackfn [, initialValue])
  6. reduceRight: function reduceRight(callbackfn /* , initialValue */) {
  7. return $reduce(this, callbackfn, arguments.length, arguments[1], true);
  8. }
  9. });