Getting Started ​
Installation ​
To install DsacJs
bash
npm install dsacjsbash
yarn add dsacjsbash
pnpm add dsacjsbash
bun add dsacjsUsage ​
Here's an example of how you can use DsacJs to create a simple stack data structure:
typescript
import { Stack } from "dsacjs";
const stack = new Stack<number>();
stack.push(1);
stack.push(2);
stack.push(3);
console.log(stack.pop()); // 3