• yeehaw
    link
    fedilink
    English
    35 months ago

    Triple equals? I’m no expert programmer but I’ve never seen that before.

    • @[email protected]
      link
      fedilink
      English
      75 months ago

      Double equals means equals, triple equals means strict equality including type.

      Prevents a Boolean true being evaluated to 1 for example

    • Kevin
      link
      fedilink
      English
      35 months ago

      Specific to JS, due to the double equals being type oblivious