r/programminghorror
•
u/Leonnee
•
Jun 12 '25
•
1
Javascript Javascript is filled with horror
2.4k
Upvotes
View all comments
Show parent comment
1
u/Einar__ Jun 12 '25
I know that you can, I just don't agree with this approach, I think that throwing an exception if no comparison function is passed would have been more reasonable than such a default.