Kargi-Sitesi/node_modules/core-js/actual/instance/group-by.js

11 lines
356 B
JavaScript
Raw Normal View History

2024-11-03 21:30:09 -05:00
'use strict';
var isPrototypeOf = require('../../internals/object-is-prototype-of');
var method = require('../array/virtual/group-by');
var ArrayPrototype = Array.prototype;
module.exports = function (it) {
var own = it.groupBy;
return it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.groupBy) ? method : own;
};