joesds
v1.1.2
Published
NPM package containing Javascript data structures
Downloads
1
Readme
Joe's Data Structures
A simple, light-weight package offering some standard, feature-complete data structures.
Contains:
- Stack
- Queue
- LinkedList
Coming Soon
- Binary Search Tree
- Doubly Linked List
- Set
- Graph
To use:
- Add the package to your repo:
npm i joesds
- Import the package and instantiate the data structure you want to use:
import joesds from 'joesds'
import { LinkedList } from 'joesds'
const bookStack = new joesds.Stack()
bookStack.push({
title: 'Cant Hurt Me',
author: 'David Goggins',
})
const bookBorrowers = new LinkedList()
bookstack[0].borrowHistory = bookBorrowers