Sha256: ae7ad1fe8db68385f069ea3249a08963384c6e844d9fe4a946f12c8964da0b62

Contents?: true

Size: 895 Bytes

Versions: 7

Compression:

Stored size: 895 Bytes

Contents

'use strict';
var $ = require('../internals/export');
var $reduceRight = require('../internals/array-reduce').right;
var arrayMethodIsStrict = require('../internals/array-method-is-strict');
var arrayMethodUsesToLength = require('../internals/array-method-uses-to-length');

var STRICT_METHOD = arrayMethodIsStrict('reduceRight');
// For preventing possible almost infinite loop in non-standard implementations, test the forward version of the method
var USES_TO_LENGTH = arrayMethodUsesToLength('reduce', { 1: 0 });

// `Array.prototype.reduceRight` method
// https://tc39.github.io/ecma262/#sec-array.prototype.reduceright
$({ target: 'Array', proto: true, forced: !STRICT_METHOD || !USES_TO_LENGTH }, {
  reduceRight: function reduceRight(callbackfn /* , initialValue */) {
    return $reduceRight(this, callbackfn, arguments.length, arguments.length > 1 ? arguments[1] : undefined);
  }
});

Version data entries

7 entries across 7 versions & 4 rubygems

Version Path
optimacms-0.1.61 spec/dummy/node_modules/core-js/modules/es.array.reduce-right.js
tang-0.2.1 spec/tang_app/node_modules/core-js/modules/es.array.reduce-right.js
tang-0.2.0 spec/tang_app/node_modules/core-js/modules/es.array.reduce-right.js
tang-0.1.0 spec/tang_app/node_modules/core-js/modules/es.array.reduce-right.js
tang-0.0.9 spec/tang_app/node_modules/core-js/modules/es.array.reduce-right.js
enju_library-0.3.8 spec/dummy/node_modules/core-js/modules/es.array.reduce-right.js
condenser-0.3 lib/condenser/processors/node_modules/core-js-pure/modules/es.array.reduce-right.js