Course · Section 11: Working With Arrays · Lecture 157: The map Method
Implement `paginate(items, page, size)` returning the slice of `items` for the given 1-indexed `page` of `size` items.
+ 1 hidden test run on Submit.
slice(start, start + size) returns the items for the requested page without touching the source array. The (page - 1) offset accounts for 1-indexed pages.
Run your code to see results.