import/Queue.js
/**
     * Removes and returns the first item in the queue.
     * Returns null if the queue is empty
     * @returns {any|null}
     */
Removes and returns the first item in the queue.
Returns null if the queue is empty
@returns {any|null}
Removes and returns the first item in the queue . Returns null if the queue is empty @returns { any|null }
dequeue()
    {
        if (this.isEmpty()) {
            return null;
        }
        return this.#items.shift();
    }
dequeue ( ) { if ( this . isEmpty ( ) ) { return null ; } return this . #items . shift ( ) ; }
Removes and returns the first item in the queue.
Removes and returns the first item in the queue .