Type of the stack elements.
Initial values for the stack.
Add an item to the end of the stack.
The item to push.
Empty the whole stack.
A boolean to state if the stack is empty or not.
Peek at the last item in the stack without removing it.
The last item in the stack, or undefined if the stack is empty.
Remove an item from the tail of the stack.
The item removed.
The current size of the stack.
Generated using TypeDoc
A custom hook for managing a stack of items.