loadsh filter code example
Example 1: Lodash filter
var users = [
{ 'user': 'barney', 'age': 36, 'active': true },
{ 'user': 'fred', 'age': 40, 'active': false }
];
_.filter(users, function(o) { return !o.active; });
_.filter(users, { 'age': 36, 'active': true });
_.filter(users, ['active', false]);
_.filter(users, 'active');
Example 2: lodash map
const _quote_filter = _.map(quote_state, (val, key) => { if (val) { return key }})console.log(_quote_filter)
Example 3: get lodash
var object = { 'a': [{ 'b': { 'c': 3 } }] }; _.get(object, 'a[0].b.c');