Comment on Not for me, tho

<- View Parent
humorlessrepost@lemmy.world ⁨1⁩ ⁨day⁩ ago

Javascript lets you compare unlike types without extra steps using ==. If you want strict comparison where “2” isn’t 2, use === and !==. Personally, I find that easier than having to parseint or cast every damn thing. That said, I have build tools set up to enforce strict comparison because I don’t trust myself or others.

source
Sort:hotnewtop