isRoot function

bool isRoot(
  1. Node node
)

Implementation

bool isRoot(Node node) => node.id == rootNodeId;