r/programminghorror
•
u/Leonnee
•
Jun 12 '25
•
1
Javascript Javascript is filled with horror
2.4k
Upvotes
View all comments
Show parent comment
41
u/Master7Chief Jun 12 '25
[1,10,NaN,2].sort((a,b)=>a-b);(4) [1, 10, NaN, 2]