Problem: 
array A   
A.push(item) 
item is object  from for or map or foreach….etc

show A  all add item is same…….

Solve:

var txxxxx = []  // xxxx is any word

=====loop start=====
txxxx[index] = item  //index is from for or map or foreach…etc

ot = {
   xxxx: txxxx[index]
}

A.push(ot)
=====loop end=====