es-toolkit
Version:
A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.
12 lines (8 loc) • 333 B
JavaScript
;
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
function isPrototype(value) {
const constructor = value?.constructor;
const prototype = typeof constructor === 'function' ? constructor.prototype : Object.prototype;
return value === prototype;
}
exports.isPrototype = isPrototype;