uni-ticket-system/node_modules/core-js/full/instance/demethodize.js
2023-12-05 10:11:10 +08:00

10 lines
371 B
JavaScript

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;
};