source: trip-planner-front/node_modules/core-js/modules/es.array.reduce-right.js@ b738035

Last change on this file since b738035 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 905 bytes
Line 
1'use strict';
2var $ = require('../internals/export');
3var $reduceRight = require('../internals/array-reduce').right;
4var arrayMethodIsStrict = require('../internals/array-method-is-strict');
5var CHROME_VERSION = require('../internals/engine-v8-version');
6var IS_NODE = require('../internals/engine-is-node');
7
8var STRICT_METHOD = arrayMethodIsStrict('reduceRight');
9// Chrome 80-82 has a critical bug
10// https://bugs.chromium.org/p/chromium/issues/detail?id=1049982
11var CHROME_BUG = !IS_NODE && CHROME_VERSION > 79 && CHROME_VERSION < 83;
12
13// `Array.prototype.reduceRight` method
14// https://tc39.es/ecma262/#sec-array.prototype.reduceright
15$({ target: 'Array', proto: true, forced: !STRICT_METHOD || CHROME_BUG }, {
16 reduceRight: function reduceRight(callbackfn /* , initialValue */) {
17 return $reduceRight(this, callbackfn, arguments.length, arguments.length > 1 ? arguments[1] : undefined);
18 }
19});
Note: See TracBrowser for help on using the repository browser.