1.0.4 • Published 4 years ago
@feizheng/next-stack v1.0.4
next-stack
Stack for next.
installation
npm install -S @feizheng/next-stack
apis
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 |
usage
import NxStack from '@feizheng/next-stack';
// code goes here: