src/structureUtil.js
// Pop the front of the queue

Pop the front of the queue
Pop the front of the queue
pop() {
        if (this.isEmpty()) {
            return "Queue is empty. Unable to pop.";
        }
        return this.list.shift();
    }
pop ( ) { if ( this . isEmpty ( ) ) { return "Queue is empty. Unable to pop." ; } return this . list . shift ( ) ; }
Pop the front of the queue
Pop the front of the queue