Loop through map and push to a new object group if items have matching values
I have the following data structure in its simplest form: items: [ { id: 1, account: ‘acct_101’ }, { id: 2, account: ‘acct_52’ }, { id: 3, account: ‘acct_33’ }, { id: 4, account: ‘acct_101’ }, { id: 5, account: ‘acct_101’ }, ] I would like to separate the items into groups based on their… Read More Loop through map and push to a new object group if items have matching values