Represents a doubly linked list.

Type Parameters

  • T

Constructors

Properties

head: null | default<T>
tail: null | default<T>

Methods

  • Fills the List with data from an array.

    Parameters

    • array: T[]

      The array to fill the list with.

    Returns void

  • Calls iteratee on each Node of the List. Alters the Node.

    Parameters

    • iteratee: (node: default<T>) => void

      The function to call on each node.

    Returns void

  • Returns all list nodes' data concatenated into a single string.

    Returns string

    The concatenated string of all nodes' data.