r/programminghorror
•
u/Leonnee
•
Jun 12 '25
•
1
Javascript Javascript is filled with horror
2.4k
Upvotes
View all comments
Show parent comment
38
u/Einar__ Jun 12 '25
It would have made more sense if it just required you to pass a comparison function and threw an exception if you didn't. I know it will never happen because backwards compatibility, but everyone can dream.