export const paginateList = < T > ( list , limit = 100 , offset = 0 ) : ReadonlyArray < T > => { if ( offset === 0 ) { return list . slice ( 0 , Math . min ( limit , list . length ) ) ; } return list . slice ( offset , Math . min ( limit + offset , list . length ) ) ; } ;