@yamamotok/dataobject
Version:
Decorator based JSON serializer and deserializer.
17 lines • 470 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getConstructor = void 0;
function getConstructor(obj) {
if (typeof obj !== 'object' || !obj) {
return undefined;
}
if (!obj.constructor) {
return undefined;
}
if (!obj.constructor.name) {
return undefined;
}
return obj.constructor;
}
exports.getConstructor = getConstructor;
//# sourceMappingURL=getConstructor.js.map