• Returns a paginated array.

    Returns

    The paginated array.

    Parameters

    • arr: any[]

      The array to paginate.

    • size: number

      The size of each page.

    Returns any[][]