typescript how to find type of object code example Example: typescript get type if (typeof abc === "number") { // do something }