* @description - Return the item at the front of the queue * @returns {*}
()
| 67 | * @returns {*} |
| 68 | */ |
| 69 | peekFirst() { |
| 70 | if (this.isEmpty()) { |
| 71 | throw new Error('Queue is Empty') |
| 72 | } |
| 73 | |
| 74 | return this.head.data |
| 75 | } |
| 76 | |
| 77 | /** |
| 78 | * @description - Return the item at the tail of the queue |
no test coverage detected