Hacker News new | ask | show | jobs
by Xenoamorphous 105 days ago
> The worst are methods that both mutate and return values

Been bitten a few times by Array.sort().

Luckily there’s Array.toSorted() now.