• Ephera@lemmy.ml
    link
    fedilink
    arrow-up
    1
    ·
    10 months ago

    The == operator in JS will try to cast the things being compared and do all kinds of ‘smart’ assumptions about what equality means. This is why everyone uses === instead…