fromAllthingssmitty1 week agoSoftware developmentStop using .reverse().find(): meet findLast() - Matt SmithArray.prototype.findLast() and findLastIndex() search arrays from the end without reversing, offering clearer, safer, and more performant code.
fromAllthingssmitty3 weeks agoJavaScriptFinally, safe array methods in JavaScript - Matt SmithES2023 added non-mutating array methods (toSorted, toReversed, toSpliced) that return new shallow copies, preventing in-place mutations and aiding immutability in stateful apps.
fromAllthingssmitty1 week agoSoftware developmentStop using .reverse().find(): meet findLast() - Matt Smith