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