massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / core-js / features / map / group-by.js
index c4dfdca59ad68f7c7031fd8c75c07f03d331be9f..cccef98a35819cd7c408a7ee533f03a11082f0c5 100644 (file)
@@ -1,11 +1,13 @@
 'use strict';
 require('../../modules/es.map');
 require('../../modules/esnext.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 mapGroupBy.call(typeof this === 'function' ? this : Map, source, iterable, keyDerivative);
+  return call(mapGroupBy, isCallable(this) ? this : Map, source, iterable, keyDerivative);
 };