this post was submitted on 31 Oct 2024
389 points (98.3% liked)

196

17994 readers
1982 users here now

Be sure to follow the rule before you head out.


Rule: You must post before you leave.



Other rules

Behavior rules:

Posting rules:

NSFW: NSFW content is permitted but it must be tagged and have content warnings. Anything that doesn't adhere to this will be removed. Content warnings should be added like: [penis], [explicit description of sex]. Non-sexualized breasts of any gender are not considered inappropriate and therefore do not need to be blurred/tagged.

If you have any questions, feel free to contact us on our matrix channel or email.

Other 196's:

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] FiskFisk33@startrek.website 14 points 8 months ago (13 children)

oh of course there is

https://www.npmjs.com/package/is-even

(do take a look at the download stats)

[–] Micromot@feddit.org 7 points 8 months ago* (last edited 8 months ago) (9 children)

Can't you just

If (number % 2 == 0){return true}

[–] FiskFisk33@startrek.website 5 points 8 months ago

yup, which is why I find the download stats truly horrifying

load more comments (8 replies)
load more comments (11 replies)