Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
69
export
function
hasChildren(data) {
70
return
Array.isArray(data.children) && data.children.length > 0;
71
}
72
73
export
function
unflatten(array, rootId = null, dataKey =
'id'
, parentKey =
'parentId'
) {
74
const
tree = [];
Callers
1
renderExpandIcon
Method · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected