1.0.0 • Published 5 years ago
@jswork/next-stack v1.0.0
next-stack
Stack for next.
installation
npm install -S @jswork/next-stackapis
| api | params | description |
|---|---|---|
| push | element(s) | Add one/multiple elements |
| pop | - | Remove top element |
| peek | - | Get top element |
| isEmpty | - | Check if elements is empty |
| clear | - | Empty the data |
| size | - | Get the length of the stack |
license
Code released under the MIT license.
1.0.0
5 years ago