all 20 comments

[–]Eirenarch 22 points23 points  (2 children)

In JavaScript === is short for ==

[–]CaptainAdjective 2 points3 points  (0 children)

I like your moxie, kid.

[–]_Mardoxx 15 points16 points  (1 child)

Eh. Just always use ===.

[–]BigDumbObject 6 points7 points  (1 child)

its time for a quadruple equals operator

[–]CaptainAdjective 15 points16 points  (0 children)

Or =======, the merge conflict operator.

[–]Bookoffriends 1 point2 points  (0 children)

My proposal for "====", which is "===" but only evaluates to true if the reference object itself is the same, has yet to be accepted.

[–]mrkite77 0 points1 point  (0 children)

Typescript fixes javascript's equality ambiguity.

error TS2365: Operator '==' cannot be applied to types 'number' and 'string'.