Split an array into pages of size countPerPage and then get the getPage page from that split. getPage is 0 indexed.
countPerPage
getPage
0
import {getArrayPage} from '@augment-vir/common';const result = getArrayPage( [ 'a', 'b', 'c', ], { countPerPage: 2, getPage: 1, },);// result is `['c']` Copy
import {getArrayPage} from '@augment-vir/common';const result = getArrayPage( [ 'a', 'b', 'c', ], { countPerPage: 2, getPage: 1, },);// result is `['c']`
Split an array into pages of size
countPerPage
and then get thegetPage
page from that split.getPage
is0
indexed.