2023-06-19 09:02:35 +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;
};