I have these objects that reside in an array. I want to arrange them by key and display all values for one key at once.
[ { '18': 'x' },
{ '17': 'y' },
{ '17': 'z' },
{ '18': 'A' },
{ '18': 'B' },
{ '19': 'C' },
{ '19': 'D' },
{ '19': 'A' } ]
I want to display it eventually in my node.js app as:
17 -> y,z
18 -> X, A, B
19 -> C, D, A
for+if. Then ask something more particular when you're in stuck