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

Function makeDataLevel

examples/react/sorting/src/makeData.ts:41–49  ·  view source on GitHub ↗
(depth = 0)

Source from the content-addressed store, hash-verified

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

Callers 1

makeDataFunction · 0.70

Calls 2

rangeFunction · 0.70
newPersonFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…