Returns the first item in the list, does not remove
()
| 777 | |
| 778 | /** Returns the first item in the list, does not remove */ |
| 779 | first(): T | null { |
| 780 | // If the list is empty, value will be the head's null |
| 781 | return this.head.next.value; |
| 782 | } |
| 783 | |
| 784 | /** Returns the last item in the list, does not remove */ |
| 785 | last(): T | null { |
no outgoing calls
no test coverage detected