• Statelessly extracts the specified page from an array.

    Type Parameters

    Parameters

    • records: T[]

      The source array to extract a page from.

    • Optional pagination: PaginationInput<T>

      A definition of the page to extract.

    Returns T[]

    This items from records matching the pagination definition.