JQUERY UNDERSCORE GROUPBY 2 COLUMNS code example
Example: underscore group by two fields
_.map(_.groupBy(list, 'date'), (value, key) => ({[key]: _.groupBy(value, 'foo')}))
_.map(_.groupBy(list, 'date'), (value, key) => ({[key]: _.groupBy(value, 'foo')}))