|
|
|
|
|
by bcherny
3277 days ago
|
|
For == vs === use a linter, same as you would for warts in other languages. What's the issue with undefined - is it that you would use null instead? I don't feel a need for integer type, but maybe that's because I grew up on JS. Integers feel like warts to me in a lot of cases, ie why would 2/3 == 1? |
|
JS's floating-point-or-bust, combined with some weird Math semantics, makes it challenging to write numerically correct functions.