Returns a paginated array.
The array to paginate.
The size of each page.
The paginated array.
// [[1, 2], [3, 4], [5]]paginate([1, 2, 3, 4, 5], 2) Copy
// [[1, 2], [3, 4], [5]]paginate([1, 2, 3, 4, 5], 2)
Returns a paginated array.