Other people have answered, but if you’d like to know more it’s a JavaScript thing:
Vs
Comment on [deleted]
cyberpunk007@lemmy.ca 6 months agoTriple equals? I’m no expert programmer but I’ve never seen that before.
Other people have answered, but if you’d like to know more it’s a JavaScript thing:
Vs
Specific to JS, due to the double equals being type oblivious
cactopuses@lemm.ee 6 months ago
Double equals means equals, triple equals means strict equality including type.
Prevents a Boolean true being evaluated to 1 for example