@codinasion/stack
v1.0.2
Published
Typescript implementation of a stack data structure
Downloads
3
Maintainers
Readme
@codinasion/stack
Typescript implementation of a stack data structure.
Installation
# if you're using pnpm
pnpm add @codinasion/stack
# or, if you're using npm
npm install @codinasion/stack
# or, if you're using yarn
yarn add @codinasion/stack
Usage
import { Stack } from "@codinasion/stack";
const stack = new Stack();
stack.push(1);
stack.push(2);
stack.push(3);
stack.pop();
console.log(stack.isEmpty()); // false