ixfx
    Preparing search index...

    Type Alias TreeNode<TValue>

    Array-backed tree node.

    Create using: Trees.Mutable.root: Imperative building of a tree Trees.FromObject.create: Create based on a snapshot of an object

    Use Trees.isTreeNode to check if an object is this type.

    Convert: Trees.Mutable.stripParentage: Create a Trees.SimplifiedNode, with parentage removed. Trees.Mutable.wrap: Create an object-oriented Trees.WrappedNode based on a node.

    type TreeNode<TValue> = {
        childrenStore: ReadonlyArray<TreeNode<TValue>>;
        parent: TreeNode<TValue> | undefined;
        value: TValue | undefined;
    }

    Type Parameters

    • TValue
    Index

    Properties

    childrenStore: ReadonlyArray<TreeNode<TValue>>

    Children of this node

    parent: TreeNode<TValue> | undefined

    Parent node, or undefined if a root

    value: TValue | undefined

    Associated value