Can someone explain this behavior:
"2"=="3"=="4"=="5"
>false
"2"=="3"=="4"=="0"
>true
Just noticed it in console, I would expect both statements to be false. I notice that the true
return seems to be an issue when only the LAST value is "0"
. It's a string comparison though so I'm not sure why this is happening.