MCPcopy Create free account
hub / github.com/Autodesk/react-base-table / hasChildren

Function hasChildren

src/utils.js:69–71  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

67}
68
69export function hasChildren(data) {
70 return Array.isArray(data.children) && data.children.length > 0;
71}
72
73export function unflatten(array, rootId = null, dataKey = 'id', parentKey = 'parentId') {
74 const tree = [];

Callers 1

renderExpandIconMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected