MCPcopy Index your code
hub / github.com/TanStack/table / makeData

Function makeData

examples/qwik/sorting/src/makeData.ts:38–50  ·  view source on GitHub ↗
(...lens: number[])

Source from the content-addressed store, hash-verified

36}
37
38export function makeData(...lens: number[]) {
39 const makeDataLevel = (depth = 0): Person[] => {
40 const len = lens[depth]!
41 return range(len).map((_d): Person => {
42 return {
43 ...newPerson(),
44 subRows: lens[depth + 1] ? makeDataLevel(depth + 1) : undefined,
45 }
46 })
47 }
48
49 return makeDataLevel()
50}

Callers 1

main.tsxFile · 0.90

Calls 1

makeDataLevelFunction · 0.70

Tested by

no test coverage detected