collections/Queue.js
/**
		 * Returns the next item in the queue (without removing it). Throws if the queue is empty.
		 *
		 * @public
		 * @returns {object} - The item added to the queue.
		 */
Returns the next item in the queue (without removing it). Throws if the queue is empty.
@public
@returns {object} - The item added to the queue.
Returns the next item in the queue ( without removing it ) . Throws if the queue is empty . @public @returns { object } - The item added to the queue .
peek() {
			if (this.empty()) {
				throw new Error('Queue is empty');
			}
			return this._array[0];
		}
peek ( ) { if ( this . empty ( ) ) { throw new Error ( 'Queue is empty' ) ; } return this . _array [ 0 ] ; }
Returns the next item in the queue (without removing it).
Returns the next item in the queue ( without removing it ) .