717
you are viewing a single comment's thread
view the rest of the comments
[-] owsei@programming.dev 2 points 7 months ago

I don't know how luxon works, but isWeekend could be a property instead of a function

[-] ByteJunk@lemmy.world 2 points 7 months ago

It is. It also happens to be undefined, and checking that for truth is how I was bitten.

this post was submitted on 21 Apr 2024
717 points (97.0% liked)

Programmer Humor

32503 readers
485 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS