UNPKG

@planjs/utils

Version:

🔧 Common tools collection

12 lines (11 loc) 266 B
/** * 是否Prototype * @param value * @category Is */ function isPrototype(value) { var Ctor = value && value.constructor; var proto = typeof Ctor === 'function' && Ctor.prototype || Object.prototype; return value === proto; } export default isPrototype;