Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Pointer32496y@stop I thought null was their own type, and I really never checked about that in Python, but it's good to know about that, thanks dude.
-
Remember the rule. Catch null and undefined with == null , use === for everything else and poof almost every confusing thing about js types and coercion is gone
-
Pointer32496y@AlexDeLarge Oh, now I see.
http://2ality.com/2013/10/...
Then, my rant would better be phrased:
"Today I learned JS typeof has a bug"
(Thanks for pointing it out, knowledge is power) -
inaba46256y@thewanderer @Grexius NaN is supposed to be a number, and not equal to itself. This is part of the specification for IEEE756.
Related Rants
Today I Learned that "null" it's an object in JS.
AAAAARGH!
rant
null
js
wtf
object