What I have:
myArray = [ {type: "My Application"}, {type: "My Component"}, {color: ["red"] } ]
What I need:
withUniqueKeys = [ {type: ["My Application", "My Component"] }, {color: ["red"]} ]
How would I loop through myArray to get an array like withUniquKeys? I've been toying with this WAAAYYYY too long. A lodash solution would be okay too.
typeandcoloror different and/or more properties?