You need to sign in to do that
Don't have an account?
Sumesh 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; }