I currently have an arrayList() called players in JavaScript in which I push data into it using: players.push({name: msg.name, map: msg.map, coords: msg.coords});
Here is an example data: { name: 'weka', map: '5', coords: '12.4' } for example players[0].
Here is what I am doing:
for (var i = 0; i < players.length; ++i) {
if (msg.name === players[i].name) {
console.log("Updating index ("+i+") player: " + msg.name);
//players[i].push({name: msg.name, map: msg.map, coords: msg.coords});
}
}