data-structures

Queue

Class
class Queue extend Stack
remove(): any;
}

Members

      
const queue = new Queue([1, 2, 3, 4, 5]);
console.log(queue.remove())) //[2, 3, 4, 5]
@complexityO(n)
@returns

removes and returns the first item in the queue