Need the last matching item in an array? πŸ”

`findLast()` and `findLastIndex()` search from the end, no more reversing arrays just to find the last match.

const lastActive = users.findLast(u => u.active);

Learn more πŸ‘‡
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/findLast