Removes and returns the last node from a singly linked list.
O(n)
O(1)
The type of the list.
The list instance.
The removed node, or undefined if the list is empty.
undefined
Removes and returns the last node from a singly linked list.
O(n)
O(1)