I have this array called "players" which stores all the players, each element of this array contains each individual player stored as an object, and this player object contains a property called "time" which in it of itself is an array. When ever I try to push an integer into this time array, I get a "time.push() is not a function" error.
players[data.num].time.push(uptime());
what I am attempting here is array[index].array.push()
This array is undefined and is declared like this.time = [];
The player objects were made by constructor function as well.
Here are the other arrays I mentioned before;
var players = [];
players.push(new Player(0,0,true));
Player() is a constructor function that contains this.time = [];
Any help is appreciated.