TS - Review the type of an object or a variable

by Rodwyn Moreno

TypeScript

let thing:any = 123;

console.log(typeof thing);

if( typeof thing === "number" ) {
  console.log("thing, It's a number");
}