EP
Exhaustion Party
@exhaustionparty.bsky.social
Not popular, but that's okay! ♥s JavaScript and occasionally has coherent thoughts about art!
Maker of Uniqlock Rewind
(repo): github.com/MegaJerk/Uniqlock/tree/main
(site): megajerk.github.io/Uniqlock/
32 followers97 following243 posts
interestingly, a newish method that dropped in 2023 would also be useful in this situation - Array.toSorted() which allows you to sort into a new array without having to make a copy first developer.mozilla.org/en-US/docs/W...
Array.prototype.toSorted() - JavaScript | MDN
The toSorted() method of Array instances is the copying version of the sort() method. It returns a new array with the elements sorted in ascending order.
Very good to know! Thanks.
EP
Exhaustion Party
@exhaustionparty.bsky.social
Not popular, but that's okay! ♥s JavaScript and occasionally has coherent thoughts about art!
Maker of Uniqlock Rewind
(repo): github.com/MegaJerk/Uniqlock/tree/main
(site): megajerk.github.io/Uniqlock/
32 followers97 following243 posts