I have an array of objects which have a property .names
which is another object.
I am using lodash...is there a helper method to get the user whose yahoo name is foo
in the following example?
const users = [{
names: {
yahoo: 'foo',
gmail: 'bar'
}
}, {
names: {
yahoo: 'foo2',
gmail: 'bar2'
}
}];