Files
est-frame/node_modules/core-js-pure/full/instance/demethodize.js
2025-10-22 05:38:27 +00:00

11 lines
385 B
JavaScript
Executable File

'use strict';
var isPrototypeOf = require('../../internals/object-is-prototype-of');
var method = require('../function/virtual/demethodize');
var FunctionPrototype = Function.prototype;
module.exports = function (it) {
var own = it.demethodize;
return it === FunctionPrototype || (isPrototypeOf(FunctionPrototype, it) && own === FunctionPrototype.demethodize) ? method : own;
};