Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

lodash groupby unique array of objects

{ audi:
   [ { model: 'r8', year: '2012' },
     { model: 'rs5', year: '2013' } ],
  ford:
   [ { model: 'mustang', year: '2012' },
     { model: 'fusion', year: '2015' } ],
  kia: 
   [ { model: 'optima', year: '2012' } ] 
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #lodash #groupby #unique #array #objects
ADD COMMENT
Topic
Name
9+2 =