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.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton