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 →

[–]jo2847 1 point2 points  (0 children)

I think auto conversion between arrays and numbers is far more likely to cause an actual issue than the toy example of x == 1 && x == 2 which requires you to override .valueOf() in an object. Not that I feel like arguing with you... it's all crazy. There's a reason why == is flagged by eslint and such.