• hex
    link
    fedilink
    arrow-up
    6
    ·
    1 month ago

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

    • arendjr
      link
      fedilink
      arrow-up
      7
      ·
      1 month 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
        ·
        1 month ago

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