Search
Preparing search index...
The search index is not available
ts-data-structures
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
LinkedList
Class LinkedList<T>
Singly Linked List
Type parameters
T
Hierarchy
LinkedList
Index
Constructors
constructor
Properties
head
tail
Methods
add
size
to
Array
to
String
Constructors
constructor
new
Linked
List
(
data
?:
any
)
:
LinkedList
Parameters
Default value
data:
any
= null
Returns
LinkedList
Properties
Private
head
head
:
ListNode
<
T
>
= null
Private
tail
tail
:
ListNode
<
T
>
= null
Methods
add
add
(
data
:
T
)
:
void
Parameters
data:
T
Returns
void
size
size
(
)
:
number
Returns
number
to
Array
to
Array
(
)
:
number
[]
Returns
number
[]
to
String
to
String
(
)
:
string
Returns
string
Globals
Linked
List
constructor
head
tail
add
size
to
Array
to
String
List
Node
Tree
Node
Generated using
TypeDoc
Singly Linked List