r/programminghorror
•
u/Leonnee
•
Jun 12 '25
•
1
Javascript Javascript is filled with horror
2.4k
Upvotes
View all comments
Show parent comment
20
u/the_horse_gamer Jun 12 '25
you CAN pass a comparison function. and since js is all about minimising exceptions, this is a somewhat reasonable default