JavaScript
fromAllthingssmitty
1 day agoFinally, safe array methods in JavaScript - Matt Smith
ES2023 added non-mutating array methods (toSorted, toReversed, toSpliced) that return new shallow copies, preventing in-place mutations and aiding immutability in stateful apps.