logoalt Hacker News

Xenoamorphousyesterday at 6:04 PM1 replyview on HN

> The worst are methods that both mutate and return values

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

Luckily there’s Array.toSorted() now.


Replies