is-explicit
Version:
Combines instance of operator and typeof operator in a way that works seamlessly with objects and literals.
20 lines (14 loc) • 600 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
/******************************************************************************/
// Main
/******************************************************************************/
const isInstanceable = value => typeof value === 'function' && value.prototype != null;
/******************************************************************************/
// Exports
/******************************************************************************/
var _default = isInstanceable;
exports.default = _default;