let grouping = items.reduce((obj, item) => { const key = item.providerId; if (!obj[key]) { obj[key] = []; } obj[key].push(item); return obj; }, {});
let grouping = items.reduce((obj, item) => { const key = item.providerId; if (!obj[key]) { obj[key] = []; } obj[key].push(item); return obj; }, {});