This method is like findKey except that it iterates over elements of a collection in the opposite order.
findKey
The object to inspect.
The function invoked per iteration.
Returns the key of the matched element, else undefined.
undefined
2.0.0
find, findIndex, findKey, findLast, findLastIndex
const users = { 'barney': { 'age': 36, 'active': true }, 'fred': { 'age': 40, 'active': false }, 'pebbles': { 'age': 1, 'active': true }}findLastKey(users, ({ age }) => age < 40)// => returns 'pebbles' assuming `findKey` returns 'barney' Copy
const users = { 'barney': { 'age': 36, 'active': true }, 'fred': { 'age': 40, 'active': false }, 'pebbles': { 'age': 1, 'active': true }}findLastKey(users, ({ age }) => age < 40)// => returns 'pebbles' assuming `findKey` returns 'barney'
This method is like
findKey
except that it iterates over elements of a collection in the opposite order.