This commit is contained in:
落日晚风
2023-12-13 11:25:22 +08:00
parent 7c2ab0b7ad
commit cff33ad7d1
6370 changed files with 378844 additions and 82245 deletions
+13
View File
@@ -0,0 +1,13 @@
'use strict';
require('../../modules/es.map');
require('../../modules/es.map.group-by');
var call = require('../../internals/function-call');
var isCallable = require('../../internals/is-callable');
var path = require('../../internals/path');
var Map = path.Map;
var mapGroupBy = Map.groupBy;
module.exports = function groupBy(source, iterable, keyDerivative) {
return call(mapGroupBy, isCallable(this) ? this : Map, source, iterable, keyDerivative);
};
+9
View File
@@ -0,0 +1,9 @@
'use strict';
require('../../modules/es.array.iterator');
require('../../modules/es.map');
require('../../modules/es.map.group-by');
require('../../modules/es.object.to-string');
require('../../modules/es.string.iterator');
var path = require('../../internals/path');
module.exports = path.Map;