• @Feathercrown@lemmy.world
    cake
    link
    fedilink
    English
    51 year ago

    One neat feature is you can compare to both null and undefined at the same time, without other falsey values giving false positives. Although that’s not necessary as often now that we have nullish coalescing and optional chaining.