[SOLVED] Cannot push and read double array

Hello, I cannot push and read double array - what to do?

ShapePicker.prototype.initialize = function() {
 this.entEnLrg =  [[],[]]; this.entEnLrg[0]=[]; this.entEnLrg[1]=[];
};

ShapePicker.prototype.update = function(dt) {
    this.doRayCast(event);
    this.updateTime = Date.now();
    if(this.updateTime-this.startTime >7000){
        this.entEnDel.forEach(this.findAlleToDELsmaa);
    }
    
    if(this.updateTime-this.startTime >10000){ 
     
        for(j=0;j<this.entEnLrg.length;j++){ 
            console.log("this.entEnLrg[j][0]: " +this.entEnLrg[[j]][0].name+" : "+this.entEnLrg[[j]][1]);
            this.entEnLrg[[j]][0].setLocalScale(
                this.entEnLrg[[j]][0].getLocalScale().x*this.entEnLrg[[j]][1], 
                this.entEnLrg[[j]][0].getLocalScale().y*this.entEnLrg[[j]][1],  
                this.entEnLrg[[j]][0].getLocalScale().z*this.entEnLrg[[j]][1]);  
        }
    }
 
};

The double array is pushed like this:

this.entEnLrg[0][0]=entTmp2; this.entEnLrg[0][1]=EnLrgFct; this.entEnLrg.push(this.entEnLrg[0][0], this.entEnLrg[0][1]);

In your initialize function you basically define this.entEnLrg to be two-dimensional. Only the first and second elements are one-dimensional arrays.
Then your push-function pushes two values into the array, which doesn’t work if the index is 0 or 1, since these elements are one-dimensional.

ok, thanks …
found this solution to work as well



arrObj = [ {    entity: entTmp2,    EnL: EnLrgFct  }];
                                       arrObjYZ = [ {     twcY: r_twoDropsCenter_Y ,    twcZ: r_twoDropsCenter_Z  }];

                                     
                                       this.entEnLrg.push(  arrObj[0]);   this.entEnLrgYZ.push(  arrObjYZ[0]);