r/programminghorror
•
u/Leonnee
•
Jun 12 '25
•
1
Javascript Javascript is filled with horror
2.4k
Upvotes
View all comments
Show parent comment
47
u/Randolpho Jun 12 '25
What else is it supposed to do? You should have passed in a comparison function, but noooo you had to pass it nothing and make it guess what you wanted it to do.