Appearance
Removes all objects from the Queue<T>.
Queue<T>
const queue = new Queue<number>(); queue.enqueue(1); queue.enqueue(2); queue.enqueue(3); queue.length // => 3 queue.clear() queue.length // => 0