Open Chocolate1999 opened 3 years ago
function getType(param) { const type = Object.prototype.toString.call(param).slice(8, -1); if (type === "Object") { return param.constructor.name; } else { return type; } }