ᐺ
recs = [];recs[players.indexOf(i)].push(5)
players = [1, 2, 3]
sln = [3, 2, 2, 1]
for(let i of players)
recs.push([])
console.log();
for(let i = 0; i < 3; i++){
recs[players.indexOf(i)].push(5)
}
^
TypeError: Cannot read property 'push' of undefined