← You copy and reverse the array to find the last match. `findLast()` searches from the end directly.
Playground
findLast() & findLastIndex() — search from the end
preview
Edits run in a sandbox in your browser — nothing is saved and nothing leaves the page.