Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> The worst are methods that both mutate and return values

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

Luckily there’s Array.toSorted() now.





Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: