ixfx
    Preparing search index...

    Type Alias TreeNode<TValue>

    Array-backed tree node.

    Create using root

    type TreeNode<TValue> = {
        childrenStore: readonly TreeNode<TValue>[];
        parent: TreeNode<TValue> | undefined;
        value: TValue | undefined;
    }

    Type Parameters

    • TValue
    Index

    Properties

    childrenStore: readonly TreeNode<TValue>[]

    Children of this node

    parent: TreeNode<TValue> | undefined

    Parent node, or undefined if a root

    value: TValue | undefined

    Associated value