peek

fun peek(): Any(source)

Returns the item at the front of the queue. Returns undefined if the queue is empty.

Return

The item at the front of the queue.

See also