- Preparing search index...
- The search index is not available
structalgo
Methods
clear
- clear(): void
-
Returns void
isEmpty
- isEmpty(): boolean
-
Returns boolean
peekBack
- peekBack(): null | T
-
Returns null | T
peekFront
- peekFront(): null | T
-
Returns null | T
popBack
- popBack(): null | T
-
Returns null | T
popFront
- popFront(): null | T
-
Returns null | T
pushBack
- pushBack(value): void
-
Returns void
pushFront
- pushFront(value): void
-
Returns void
size
- size(): number
-
Returns number
toArray
- toArray(): T[]
-
Returns T[]
toString
- toString(stringify?): string
-
Parameters
-
Optional stringify: ((value) => string)
-
- (value): string
-
Returns string
Returns string
Deque (Double-ended Queue) data structure A deque is a linear data structure that allows insertion and deletion at both ends.
Example