• axEl7fB5@lemmy.cafe
      link
      fedilink
      English
      arrow-up
      3
      ·
      edit-2
      15 days ago
      function isEven(number) {
        return number % 2 === 0;
      }
      

      Dunno about making it “concise” but you can shorten the name of the function and the parameter and maybe use == instead of ===