What is the best way to create and populate a three dimensional array by inserting a two dimensional array?
Say I have an array
var arrState = {
ME: ['Maine','1,328,361'],
etc
};
And I want to store the current values in that array each time a function is ran. Would something like this work?
var arrStateHistory;
var i = 0;
function start(){
i++;
arrHistory[i] = arrState;
}