Deque. Implemented with a doubly linked list.
Type of deque values.
Private
Optional
The maximum size of the deque.
The size of the deque.
Returns an iterator for the deque.
An iterator for the deque.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols
Returns an backward iterator for the deque.
An backward iterator for the deque.
Clears the deque.
Peeks at the first value.
The first value or undefined if the deque is empty.
undefined
Peeks at the last value.
The last value or undefined if the deque is empty.
Pops a value from the deque.
The popped value or undefined if the deque is empty.
Appends a value to the deque.
Value to append.
The new size of the queue.
Shifts a value from the deque.
The shifted value or undefined if the deque is empty.
Prepends a value to the deque.
Value to prepend.
Generated using TypeDoc
Deque. Implemented with a doubly linked list.