#es2023

[ follow ]
JavaScript
fromAllthingssmitty
1 day ago

Finally, 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.
[ Load more ]