Search
Preparing search index...
The search index is not available
Data Structures and Algorithms
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Data Structures and Algorithms
Stack
Class Stack<T>
Type parameters
T
Hierarchy
Stack
Index
Constructors
constructor
Properties
array
Accessors
empty
top
Methods
pop
push
Constructors
constructor
new
Stack
<
T
>
(
initialArray
?:
T
[]
)
:
Stack
<
T
>
Type parameters
T
Parameters
initialArray:
T
[]
= []
Returns
Stack
<
T
>
Properties
Private
array
array
:
T
[]
Accessors
empty
get
empty
(
)
:
boolean
Returns
boolean
top
get
top
(
)
:
T
Returns
T
Methods
pop
pop
(
)
:
T
Returns
T
push
push
(
element
:
T
)
:
number
Parameters
element:
T
Returns
number
Exports
Stack
constructor
array
empty
top
pop
push