1.0.1 • Published 6 years ago
wolf-stack v1.0.1
Wolf Stack
A lightweight implementation of a Stack data structure.
Methods Available | Method Descriptions |
---|---|
push | adds a value to the stack |
pop | removes and returns the value at the top of the stack |
peek | returns the value at the top of the stack |
isEmpty | returns a boolean indicating if the stack has any values |
print | logs a string of the values stored in the stack |
getMinimum | returns the minimum value in the stack |
NOTE:
getMinimum
requires the stack to contain numeric values onlyclear
| empties all values from the current stack
Properties Available | Property Descriptions |
---|---|
size | returns the amount of values stored in the stack |