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

Function range

site/src/components/PaginationWidget/utils.ts:6–7  ·  view source on GitHub ↗
(start: number, stop: number, step = 1)

Source from the content-addressed store, hash-verified

4 * {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/from#sequence_generator_range}
5 */
6const range = (start: number, stop: number, step = 1) =>
7 Array.from({ length: (stop - start) / step + 1 }, (_, i) => start + i * step);
8
9// NOTE: maxWorkspaceIDs in coderd/exp_chats.go is coupled to this value.
10export const DEFAULT_RECORDS_PER_PAGE = 25;

Callers 2

buildPagedListFunction · 0.85
entities.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected