lodash find in array of objects code example
Example 1: lodash find object in array
var users = [
{ 'user': 'barney', 'age': 36, 'active': true },
{ 'user': 'fred', 'age': 40, 'active': false },
{ 'user': 'pebbles', 'age': 1, 'active': true }
];
_.find(users, function(o) { return o.age < 40; });
Example 2: lodash map
const _quote_filter = _.map(quote_state, (val, key) => { if (val) { return key }})console.log(_quote_filter)
Example 3: lodash map
_.each(markets, (obj, key) => { obj.symbol = key})console.log(markets)