2025-04-02 06:50:39 -04:00

8 lines
201 B
JavaScript

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