cmdrkeen@programming.dev to Programmer Humor@programming.dev · 8 months agoThe Holy Trinity of JavaScriptprogramming.devimagemessage-square72fedilinkarrow-up1731arrow-down111
arrow-up1720arrow-down1imageThe Holy Trinity of JavaScriptprogramming.devcmdrkeen@programming.dev to Programmer Humor@programming.dev · 8 months agomessage-square72fedilink
minus-squarezqwzzle@lemmy.calinkfedilinkEnglisharrow-up9arrow-down3·edit-28 months ago=== is just == with extra steps
minus-squarethanks_shakey_snake@lemmy.calinkfedilinkarrow-up23·8 months agoIt’s actually the other way around. == has to perform type coercions as part of its equality algorithm, whereas === does not, so == has more steps.
===
is just==
with extra stepsIt’s actually the other way around. == has to perform type coercions as part of its equality algorithm, whereas === does not, so == has more steps.
It’s to be REALLY sure