How to make a foreach of an object in javascript?
问题 I am currently building a mashup in Qlik Sense in JavaScript and jQuery. I have made some data selection and I have put them in a variable object : var CurrentSelec = app1.selectionState().selections; console.log(CurrentSelec);` console.log(typeof CurrentSelec); This is what I get on my browser console : I'm trying to show the qSelected value in a Foreach : I have tried with Javascript : for(var index in CurrentSelec) { console.log(index.qSelected); } I have tried with jQuery: $.each