Comment Comment by tenaciousDaniel yeah if I'm doing any kind of loose type-checking I make it explicit.if (myNum === 2 || myNum === '2') {}It's very easy for developers to mistakenly "see" the third equality symbol and get confused by the intent of the code. parent tenaciousDaniel 8 years ago
if (myNum === 2 || myNum === '2') {}
It's very easy for developers to mistakenly "see" the third equality symbol and get confused by the intent of the code.