cmdrkeen@programming.dev to Programmer Humor@programming.dev · 11 months agoThe Holy Trinity of JavaScriptprogramming.devimagemessage-square67fedilinkarrow-up1723arrow-down111
arrow-up1712arrow-down1imageThe Holy Trinity of JavaScriptprogramming.devcmdrkeen@programming.dev to Programmer Humor@programming.dev · 11 months agomessage-square67fedilink
minus-squarezqwzzlelinkfedilinkEnglisharrow-up9arrow-down3·edit-211 months ago=== is just == with extra steps
minus-squarethanks_shakey_snakelinkfedilinkarrow-up25·11 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