You must log in or register to comment.
I’m so bored of people bringing up NaN !== NaN when talking about “javascript’s wonkiness”. This is defined by IEEE for the floating point standard and it appears in any other language using IEEE 754 (which is the majority)
You shouldn’t attempt comparing 2 floating point numbers with simply
==
(or===
in JavaScript) in most cases and in most languages anyways.Totally agree. Moreover I can not think of a valid scenario where you would use such a comparison
Removed by mod
A reason not mentioned here which is the only reason I would not use TS is the setup it requires just to get started
TypeScript is a fine language.
If only it didn’t compile to JavaScript…