1.0.1 • Published 3 years ago
@utilityjs/stack v1.0.1
An implementation of Stack data structure.
npm i @utilityjs/stack | yarn add @utilityjs/stack
Stack()
export default class Stack<T> {
constructor();
isEmpty(): boolean;
push(value: T): void;
pop(): T | null;
peek(): T | null;
toArray(): T[];
}