MCPcopy Index your code
hub / github.com/coder/coder / isNonInitialPage

Function isNonInitialPage

site/src/components/PaginationWidget/utils.ts:75–80  ·  view source on GitHub ↗
(searchParams: URLSearchParams)

Source from the content-addressed store, hash-verified

73};
74
75export const isNonInitialPage = (searchParams: URLSearchParams): boolean => {
76 const page = searchParams.get("page");
77 const conversion = Number(page);
78
79 return Number.isInteger(conversion) && conversion > 1;
80};

Callers 3

utils.test.tsFile · 0.90
ConnectionLogPageFunction · 0.90
AuditPageFunction · 0.90

Calls 2

NumberFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected