collections/Queue.js
/**
		 * Removes the next item from the queue and returns it. Throws if the queue is empty.
		 *
		 * @public
		 * @returns {object} - The item added to the queue.
		 */
Removes the next item from the queue and returns it. Throws if the queue is empty.
@public
@returns {object} - The item added to the queue.
Removes the next item from the queue and returns it . Throws if the queue is empty . @public @returns { object } - The item added to the queue .
dequeue() {
			if (this.empty()) {
				throw new Error('Queue is empty');
			}
			return this._array.shift();
		}
dequeue ( ) { if ( this . empty ( ) ) { throw new Error ( 'Queue is empty' ) ; } return this . _array . shift ( ) ; }
Removes the next item from the queue and returns it.
Removes the next item from the queue and returns it .