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')([].reduceRight, true), 'Array', {
|
|
|
|
// 22.1.3.19 / 15.4.4.22 Array.prototype.reduceRight(callbackfn [, initialValue])
|
2017-08-14 05:01:11 +02:00
|
|
|
reduceRight: function reduceRight(callbackfn /* , initialValue */) {
|
2017-05-28 00:38:50 +02:00
|
|
|
return $reduce(this, callbackfn, arguments.length, arguments[1], true);
|
|
|
|
}
|
2017-08-14 05:01:11 +02:00
|
|
|
});
|