Removes the first node at the front of the list
()
| 752 | |
| 753 | /** Removes the first node at the front of the list */ |
| 754 | shift(): T | null { |
| 755 | return this.remove(this.head.next); |
| 756 | } |
| 757 | |
| 758 | /** Removes the last node at the end of the list */ |
| 759 | pop(): T | null { |