In my code, I need an object that's equivalent to
(0,0) (20,0) (40,0) ... (580,0)
(0,20) (20,20) (40,20) ... (580,20)
.
.
.
(0,580) (20,580) (40,580) .... (580,580)
These correspond to (x,y) coordinates on a grid for a game I'm making. Does Javascript have a simply abstraction for this???? I didn't find this How can I create a two dimensional array in JavaScript? answer to be satisfactory. I want a 30x30 2d array where I can access elements like arr[0][1] = [0,20]
and so forth.