1 | ;
|
2 | var isPrototypeOf = require('../../internals/object-is-prototype-of');
|
3 | var method = require('../function/virtual/demethodize');
|
4 |
|
5 | var FunctionPrototype = Function.prototype;
|
6 |
|
7 | module.exports = function (it) {
|
8 | var own = it.demethodize;
|
9 | return it === FunctionPrototype || (isPrototypeOf(FunctionPrototype, it) && own === FunctionPrototype.demethodize) ? method : own;
|
10 | };
|