I'm learning game dev. In javascript and forFor the code that I havein my game, I needwant a 2d2D array which represents the map(first dimension y and second the x coordiantes).
Now I created aan actual map with Tiled but it returns onlyproduces a 1d1D array. Is there any way to convert it into my desired format wothout manually adding brackets and commas after each line?