Skip to content

Nishant-Dwivedi/javascript-data-structures

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

javascript-data-structures

Some commonly used data structures written in javascript.

Usage Guidelines

Import the object from index.js. All the data-structures will be available on this object as methods. Calling these methods will create new data structure instances that you can use in your code. There is a help method you can call on the imported object and individual data structure instances. When called on the imported object, it will log to console, how to instantiate individual data structures. When called on instance of any data structure, it will log to the console the different methods supported by the data structure.

import ds from "./index.js";

ds.help(); // logs to the console, how you can instantiate different data structures.

const pq = new ds.priorityQueue([], comparator);
pq.help(); // logs to the console, how to use the priority queue.

Usage on Node.js

Usage on node.js

Usage on a Browser

If you want to use these data-structures in a browser, you can download GetJSDS from https://addons.mozilla.org/en-US/firefox/addon/getjsds, a small extension that provides one-click access to these commonly used, but unavailable data structures in Javascript.

About

some commonly used data structures written in javascript.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors