r/programminghorror
•
u/Leonnee
•
Jun 12 '25
•
1
Javascript Javascript is filled with horror
2.4k
Upvotes
View all comments
Show parent comment
2
u/TorbenKoehn Jun 12 '25
It’s not a bug and of course it can handle integers.
Just that the default comparison is like
which doesn’t mean you can’t just pass another comparator like