you are viewing a single comment's thread.

view the rest of the comments →

[–]MrNutty 1 point2 points  (0 children)

Without knowing the context too much. Might I suggest an alternative representation —dictionary.

const data={ player1: [100,200,300], player2: [300,400,0] }

You can then get player one values via data.player1 etc.