UNPKG

es-toolkit

Version:

A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.

8 lines (7 loc) 265 B
//#region src/compat/_internal/isPrototype.ts function isPrototype(value) { const constructor = value?.constructor; return value === (typeof constructor === "function" ? constructor.prototype : Object.prototype); } //#endregion exports.isPrototype = isPrototype;