this post was submitted on 21 Jul 2023
81 points (96.6% liked)
Programming Humor
2662 readers
2 users here now
Related Communities !programmerhumor@lemmy.ml !programmer_humor@programming.dev !programmerhumor@kbin.social !programming_horror@programming.dev
Other Programming Communities !programming@beehaw.org !programming@programming.dev !programming@lemmy.ml !programming@kbin.social !learn_programming@programming.dev !functional_programming@programming.dev !embedded_prog@lemmy.ml
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
From MDN:
So, if you're trying to sort numbers,
[6, -2, 2, -7].sort((a, b) => a - b)
That might be explainable, but doesn't make it logical or acceptable.