TS - Review the type of an object or a variable
TypeScript
let thing:any = 123;
console.log(typeof thing);
if( typeof thing === "number" ) {
console.log("thing, It's a number");
}
let thing:any = 123;
console.log(typeof thing);
if( typeof thing === "number" ) {
console.log("thing, It's a number");
}