1// Outputs an array with [[KEY, VALUE]]
2_.entries(obj)
3_.toPairs(obj)
4
5// Outputs array with objects containing the keys and values
6_.map(_.entries(obj), ([k,v]) => ({[k]:v}))
7_.map(_.keys(obj), k => ({[k]: obj[k]}))
8_.transform(obj, (r,c,k) => r.push({[k]:c}), [])
9_.reduce(obj, (r,c,k) => (r.push({[k]:c}), r), [])
10
1const _quote_filter = _.map(quote_state, (val, key) => { if (val) { return key }})console.log(_quote_filter) //=> [ 'btc', undefined, undefined ]