У меня есть эти 3-х мерные массивы:
![Click for Safari Scope Chain Result](https://i.stack.imgur.com/dpsrA.png)
I then try to add a new row to the 2nd dimension using:
drawTable[1].push([0,0,0,0,0,0])
and the array updates to:
![Click for Safari Scope Chain Result](https://i.stack.imgur.com/CkzXq.png)
I did not expect drawTable[0] to be affected, but looks like it gets a row to, perhaps to keep it "square"?
I then run the following code:
drawTable[1][1]=[1,1,1,1,1,1].
I would expect this to only change one line of 0's, but it seems to change it in drawTable[0] and drawTable 1 по какой-то причине.
Нажмите, чтобы увидеть результат Safari Scope Chain
Кто-нибудь может мне объяснить такое поведение?