getType Posted on 2019-09-28 Edited on 2019-10-16 In JavaScript 1234567891011/** * @param {object} * @return {string} */function getType(obj) { return Object.prototype.toString .call(obj) .match(/\s[a-zA-Z]+/)[0] .toLowerCase();}