We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FindLastKey will return the key value of the last key whose property value it encounters that matches or returns true for the predicate
A slight amalgam of version 3 and 4 of Lodash's implementation, with allowing for both array selection notation as well as a 'this' argument.
const users = { 'barney': { 'age': 36, 'active': true }, 'fred': { 'age': 27, 'active': false }, 'pebbles': { 'age': 40, 'active': false } }; Objects.findKey(users, function(chr) { return chr.age > 30; }); // => 'pebbles' (iteration order is not guaranteed) Objects.findKey(users, { 'age': 27, 'active': false }); // => 'fred' Objects.findKey(users, ['active', false]); // => 'pebbles' Objects.findKey(users, 'active'); // => 'barney'
The text was updated successfully, but these errors were encountered:
Added in v0.64
Sorry, something went wrong.
No branches or pull requests
FindLastKey will return the key value of the last key whose property value it encounters that matches or returns true for the predicate
Checklist
Details
A slight amalgam of version 3 and 4 of Lodash's implementation, with allowing for both array selection notation as well as a 'this' argument.
References
The text was updated successfully, but these errors were encountered: