@berish/serber
Version:
Serializable and deserializable adaptive adapter with plugins
9 lines • 340 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
function getType(value) {
const regex = /^\[object (\S+?)\]$/;
const matches = Object.prototype.toString.call(value).match(regex) || [];
return (matches[1] || 'undefined').toLowerCase();
}
exports.getType = getType;
//# sourceMappingURL=getType.js.map