26 / 26
read the snippet · pick its Big-O
// pageSize is a fixed UI constant (e.g. 50).const PAGE_SIZE = 50;function pageOf(rows, pageIndex) {const start = pageIndex * PAGE_SIZE;return rows.slice(start, start + PAGE_SIZE);}
// pageSize is a fixed UI constant (e.g. 50).const PAGE_SIZE = 50;function pageOf(rows, pageIndex) {const start = pageIndex * PAGE_SIZE;return rows.slice(start, start + PAGE_SIZE);}