DEV Community

Discussion on: A silly way to reverse an array

Collapse
 
mellen profile image
Matt Ellen • Edited

I see the problem. I'm creating a square grid, and if the array's length is not a perfect square, then there will be blanks in the grid, which get rotated with the items.