more on JavaScript type quirks
¶ by !undefinedA good companion piece to “why you should basically never use the Number constructor”, arriving at many of the same conclusions by many of the same methods. However, I would disagree that the issue is with the equality operators (i.e., ==
and ===
), and instead maintain that it’s the quirky types implementation that hoses you.
Leave a Reply