4 ms·
In summary: No loosely equal (==) 2 == "2" // FALSE. Like C, et. al. And he blames it on listening to this notorious user feedback: “I’d like to compare
by efortis 4y ago
In summary:
No loosely equal (==)
2 == "2" // FALSE. Like C, et. al.
And he blames it on listening to this notorious user feedback:
“I’d like to compare a number to a string that contains that numeral. And I don’t want to have to change my code to convert the string to a number, or the number to a string.”
- jamesfinlayson 4y agoWhenever I have to start linting an old codebase, this, invariably, is the most frequent error.