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

Function recurse

packages/table-core/src/utils.ts:121–129  ·  view source on GitHub ↗
(subArr: TNode[])

Source from the content-addressed store, hash-verified

119 const flat: TNode[] = []
120
121 const recurse = (subArr: TNode[]) => {
122 subArr.forEach((item) => {
123 flat.push(item)
124 const children = getChildren(item)
125 if (children?.length) {
126 recurse(children)
127 }
128 })
129 }
130
131 recurse(arr)
132

Callers 1

flattenByFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected