Appearance
Adds an object to the end of the Queue<T>.
Queue<T>
valueT: The object to add to the Queue<T>
T
const queue = new Queue<number>(); queue.enqueue(1); queue.enqueue(2); queue.enqueue(3); queue.length // => 3
This method is an O(1) operation.