I wanted to reblog this because I didn’t realize until recently how important this is and I keep running into it. A Tweet from @dNetGuru ( Farzad E. ) shows an excellent chart of why this is important and not just nit-picking.
A good reason to use “===” instead of “==” for equality testing in Javascript http://t.co/aBSXZrpKKn (via: @sdepouw) pic.twitter.com/O3PDEKC5FF
— Farzad E. (@dNetGuru) January 2, 2015
Do you really want [1] to equal “1” and true? Do you really want [[]] to equal “”? Avoid weird bugs by using ===.