Typescript Docs Javascript Equality
One thing to be careful about in JavaScript is the difference between == and ===. As JavaScript tries to be resilient against programming errors == tries to do type coercion between two variables e.g. converts a string to a number so that you can compare with a number as shown below:
console.log(5 == "5"); // true , TS Error
console.log(5 === "5"); // false , TS Error