• ivn
    link
    fedilink
    English
    arrow-up
    5
    ·
    1 day ago

    I’ve never seen the !0 and !1, it is dumb and indicates either young or terrible devs.

    Boolean(window.chrome) is the best, !!window.chrome is good, no need to test if it’s equal to true if you make it a boolean beforehand.