• hex
    link
    fedilink
    arrow-up
    6
    ·
    2 months ago

    I mean, boolean short circuit is a super idiomatic pattern in Javascript

    • arendjr
      link
      fedilink
      arrow-up
      7
      ·
      2 months ago

      I think that’s very team/project dependent. I’ve seen it done before indeed, but I’ve never been on a team where it was considered idiomatic.

      • hex
        link
        fedilink
        arrow-up
        2
        ·
        2 months ago

        It’s not that deep. It looks nice, and is easy to understand.