Skip to content

Commit

Permalink
enforce Map.groupBy polyfill in the pure version
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Jul 26, 2023
1 parent 1f684c1 commit 4c56a00
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core-js/modules/esnext.map.group-by.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'use strict';
var $ = require('../internals/export');
var IS_PURE = require('../internals/is-pure');
var uncurryThis = require('../internals/function-uncurry-this');
var aCallable = require('../internals/a-callable');
var requireObjectCoercible = require('../internals/require-object-coercible');
Expand All @@ -14,7 +15,7 @@ var push = uncurryThis([].push);

// `Map.groupBy` method
// https://github.com/tc39/proposal-array-grouping
$({ target: 'Map', stat: true }, {
$({ target: 'Map', stat: true, forced: IS_PURE }, {
groupBy: function groupBy(items, callbackfn) {
requireObjectCoercible(items);
aCallable(callbackfn);
Expand Down

0 comments on commit 4c56a00

Please sign in to comment.