• FiskFisk33
    link
    fedilink
    arrow-up
    1
    ·
    4 months ago

    the remainder operator should return a number or a NaN right? do we actually need the triple here?

    • marcos@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      4 months ago

      Not really. But with JS it’s better safe than sorry.

      The GP’s addition is unnecessary, but I fully support anyone that decides to do it.