Represents a node in a doubly linked list.

Type Parameters

  • T

Constructors

Properties

Methods

Constructors

Properties

data: T
next: null | default<T>
prev: null | default<T>

Methods

  • Creates a Node from an object.

    Type Parameters

    • T

    Parameters

    • obj: { data: T }

      The object to create a node from.

      • data: T

        The data to store in the node.

    Returns default<T>

    The created node.