function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sumesh ChandranSumesh Chandran 

Javascript multidimensional array items for Aura:iteration

I am trying to create a multidimensional array and want the items of that array to be iterated using Aura Iteration. In the below code at the end I want array in a key value pair format like {name:"", count:''} and want that array to be iterated through in the component markup. This is where I was able to get to so far. Please advise!
var sups = [];
 var supOpps = [,];
           for (var i = 0; i < result.length; i++) {                     
                    sups.push(result[i].sumchans__Owner_Manager__c);                     
                }
                sups = Array.from(new Set(sups));
                for (var i = 0; i < sups.length; i++) {                     
					supOpps[i,i] == sups[i];
                    supOpps[i,i+1] == result.filter(x => { 
                        return x.sumchans__Owner_Manager__c === sups[i];
                    }).length;                         
                }