7 lines
205 B
JavaScript
7 lines
205 B
JavaScript
export function hasNoChildren(node) {
|
|
return !node || !node.children || node.children.isEmpty;
|
|
}
|
|
|
|
export function isNodeChildrenList(node, list) {
|
|
return node !== null && node.children === list;
|
|
}
|