getType(obj) { let type = Object.prototype.toString.call(obj); return type.match(/\[object (\w+)\]/)[1]; },