UNPKG

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