As I've read somewhere it is advised to use !== and === instead.
"Use the strict equality operator (===) when you want to check that the two operands are of the same type and value. Use the regular equality operator (==) if you care only about the value and the type does not matter. If, for example, one operand is the number 5 and the other operand is the string "5", standard equality operator will return true, but, since they are not of the same type, a strict equality operator will return false." http://www.webreference.com/js/column26/stricteq.html
It depends on what your'e trying to do.
!== and === compare both value and type.
5 == "5"
The above will return true. If that's not what you intended, you should do this instead:
5 === "5"
That would return false.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With