pop Method

Removes the front-most element off of the queue and returns it.

pop(): T | undefined

Returns - The front-most element, or undefined if the queue is empty.

Defined in

Last Updated: 08 January, 2020