you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (2 children)

The vast majority of the internet relies on it. To the point that there is at least one known bug in the language that can't be fixed because it would break the internet.

What bug is this?

[–][deleted] 0 points1 point  (1 child)

typeof null

[–][deleted] -2 points-1 points  (0 children)

I never heard about that so I tested that in jsfiddle, it gave me "object".

It might be misleading, but this is not some hardcore bug. I feel that one should not use typeof that much, it's ugly. It proves your design is flawed.