Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LinkedList<T>

Linked List

Type parameters

  • T

Hierarchy

  • LinkedList

Index

Constructors

Properties

nodes: LinkedListNode<T>[] = []

Accessors

  • get isEmpty(): boolean
  • get size(): number

Methods

  • clear(): void
  • insertAt(index: number, value: T): { next: LinkedListNode<T>; value: T }
  • map(fn: (value: T, index: number) => T): T[]
  • reverse(): void
  • toString(): string