1// Suppose the following is the stringified array :
2
3let array = [{
4 name : 'name1'
5},
6 {
7 name : 'name2'
8},
9 {
10 name : 'name3'
11}]
12
13// We can use for-of loop to get the value of the key name:
14
15for(key of array){
16 console.log(key.name)
17}
18
19// we can also use for-each loop here :
20
21array.forEach((element)=>{
22 console.log(element.name)
23})
1//Iterate through arraylist object and put it to a separate array object
2$.each(arrayListOutput,function(i,v){
3_temp=[];
4_temp.push(arrayListOutput[i][0]);
5
6});