aboutsummaryrefslogtreecommitdiff
path: root/node_modules/core-js/modules/es6.array.reduce-right.js
blob: 168e421d88a8bfa58adbd3b133bf5f8b33d7f377 (plain)
1
2
3
4
5
6
7
8
9
10
'use strict';
var $export = require('./_export');
var $reduce = require('./_array-reduce');

$export($export.P + $export.F * !require('./_strict-method')([].reduceRight, true), 'Array', {
  // 22.1.3.19 / 15.4.4.22 Array.prototype.reduceRight(callbackfn [, initialValue])
  reduceRight: function reduceRight(callbackfn /* , initialValue */) {
    return $reduce(this, callbackfn, arguments.length, arguments[1], true);
  }
});