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/Davvos11 Jun 12 '25
How would you propose to determine that? Keep in mind that the array can have an arbitrarily long length and you would have to do this every time you sort it.