optional array to initialize queue
The size of the queue
Get the first element from the queue
the first element from the queue or undefined
if queue is empty
Enqueue an element to queue
Check if queue is empty
Peek the first element of queue without removing it
an element from the queue or undefined
if queue is empty
Generated using TypeDoc
Queue
First in first out (FIFO) linear data structure
Examples