Course · Section 11: Working With Arrays · Lecture 157: The map Method
Implement `chunkRows(items, perRow)` splitting items into rows of `perRow`, for grid layouts.
+ 1 hidden test run on Submit.
Looping with i += perRow and slicing each window groups items into rows for grid layouts, leaving the original array intact.
Run your code to see results.