dequeue

Dequeues an item. Returns undefined if the queue is empty.

Return

The the dequeued item.

See also