typescript check the type of an argument code example Example: typescript get type if (typeof abc === "number") { // do something }