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

Function makeData

examples/react/filters/src/makeData.ts:36–48  ·  view source on GitHub ↗
(...lens: number[])

Source from the content-addressed store, hash-verified

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

Callers 2

AppFunction · 0.90
refreshDataFunction · 0.90

Calls 1

makeDataLevelFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…