UNPKG

423 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3const lodash_1 = require("../../wrap/lodash");
4function isNativePrototype(thing) {
5 if (thing == null || !lodash_1.default.isFunction(thing.isPrototypeOf))
6 return false;
7 return lodash_1.default.some([Object, Function], (nativeType) => Object.prototype.isPrototypeOf.call(thing, nativeType));
8}
9exports.default = isNativePrototype;