class Queue<T> { private data = []; push(item:T) { return this.data.push(item); } pop():T { return this.data.shift(); } } const queue = new Queue<string>(); queue.push(1);
class Queue<T> { private data = []; push(item:T) { return this.data.push(item); } pop():T { return this.data.shift(); } } const queue = new Queue<string>(); queue.push(1);