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

Programmer Humor

32718 readers
325 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 2 points 8 months ago (1 children)

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

[โ€“] [email protected] 2 points 8 months ago

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