main
Last change
on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
662 bytes
|
Line | |
---|
1 | 'use strict';
|
---|
2 | // TODO: Remove from `core-js@4`
|
---|
3 | var $ = require('../internals/export');
|
---|
4 | var arrayMethodIsStrict = require('../internals/array-method-is-strict');
|
---|
5 | var addToUnscopables = require('../internals/add-to-unscopables');
|
---|
6 | var $groupToMap = require('../internals/array-group-to-map');
|
---|
7 | var IS_PURE = require('../internals/is-pure');
|
---|
8 |
|
---|
9 | // `Array.prototype.groupByToMap` method
|
---|
10 | // https://github.com/tc39/proposal-array-grouping
|
---|
11 | // https://bugs.webkit.org/show_bug.cgi?id=236541
|
---|
12 | $({ target: 'Array', proto: true, name: 'groupToMap', forced: IS_PURE || !arrayMethodIsStrict('groupByToMap') }, {
|
---|
13 | groupByToMap: $groupToMap
|
---|
14 | });
|
---|
15 |
|
---|
16 | addToUnscopables('groupByToMap');
|
---|
Note:
See
TracBrowser
for help on using the repository browser.