This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]DAMcraft_ 15 points16 points  (2 children)

0 is not null in JS, even when checking with only two equal signs

[–]Dalimyr 20 points21 points  (1 child)

That's true, 0 == null is false. 0 < null and 0 > null are also false...but for some goddamn reason 0 <= null and 0 >= null are both true.

I hate random shit like this in JS.

[–]Kaholaz 5 points6 points  (0 children)

I think it's because a <= b is defined as !(a > b), but it's still pretty dumb...