To find array index of complex
<aura:component > <aura:handler name="render" value="{!this}" action="{!c.myAction}"/> <aura:attribute name="objs" type="Object[]" /> </aura:component> ({ myAction : function(component, event, helper) { var studentsArray = [ { "rollnumber": 1, "name": "dj", "subject": "physics" }, { "rollnumber": 2, "name": "tanmay", "subject": "biology" }, { "rollnumber": 3, "name": "amit", "subject": "chemistry" }, ]; console.log('studentsArray'+JSON.stringify(studentsArray[0])); console.log(studentsArray[0].rollnumber); console.log(studentsArray[0].name...