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