#es2023

[ follow ]
#javascript
fromAllthingssmitty
1 week ago
Software development

Stop using .reverse().find(): meet findLast() - Matt Smith

Array.prototype.findLast() and findLastIndex() search arrays from the end without reversing, offering clearer, safer, and more performant code.
fromAllthingssmitty
3 weeks ago
JavaScript

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 ]