Type Parameters

  • TValue

  • TMetadata

Hierarchy

  • MergeFunction

Implemented by

Methods

Methods

  • Merges two nodes.

    Parameters

    • n1: Node<TValue>

      Node 1 to merge.

    • n2: null | Node<TValue>

      Node 2 to merge.

    • metadata: null | TMetadata

      optional tree metadata, generally only given when building the root node.

    Returns Promise<Node<TValue>>