Hacker News new | ask | show | jobs
by scjody 4442 days ago
> Have I learned anything directly useful?

You probably haven't. But a less experienced programmer has learned why you should always use ===.

1 comments

The example at the end of the article shows how you can have the same problem while always using ===.
The example at the end of the article shows how you deserve all sorts of bad things happening to you if you mutate values in a freaking getter.
I think it's a great example of why overriding the default prototype functions is a bad idea.