1.1.2 • Published 5 years ago

joesds v1.1.2

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

Joe's Data Structures

A simple, light-weight package offering some standard, feature-complete data structures.

Contains:

  1. Stack
  2. Queue
  3. LinkedList

Coming Soon

  1. Binary Search Tree
  2. Doubly Linked List
  3. Set
  4. Graph

To use:

  1. Add the package to your repo:
npm i joesds
  1. 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