this post was submitted on 28 Jun 2025
1093 points (99.1% liked)

Programmer Humor

25460 readers
993 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] copd@lemmy.world 4 points 1 month ago (1 children)

besides NaN actually being a number, this could completely and easily be avoided with typescript.

[โ€“] rooroo@feddit.org 6 points 1 month ago

Naaah. Good programmers know how to use as any as any to make this work in typescript as well.