this post was submitted on 20 Jul 2025
671 points (99.0% liked)

HistoryPorn

7368 readers
31 users here now

COMM MOVED TO !historyphotos@piefed.social

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] JackLSauce@lemmy.world 31 points 2 months ago (2 children)

And we've been trying to find a more concise isEven function ever since

[–] axEl7fB5@lemmy.cafe 3 points 2 months ago* (last edited 2 months ago) (1 children)
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 ===

[–] PlexSheep 4 points 2 months ago