A library for data structure in JavaScript
A library for data structures in JavaScript
DataStructures is a JavaScript library where you can find the most common data structures and also other data structures more advanced. Various method are also provided in order to manipulate data structures.
This library implements the iterator pattern in order to hide the data structure that work for storing your data.
Download the minimized library here (right click and save as...);
Include the file in your project;
Start to use it as any other class.
Example
var listA = new DoubleLinkedList();
var listB = new DoubleLinkedList();
listA.fromArray([0, 1]);
listB.fromArray([2, 3]);
listA.join(listB);
listA.toArray(); // [0, 1, 2, 3]
Follow this link to read the full documentation. Follow this link to read the JSDoc.
Battistella Stefano, stefano.battistella.92@gmail.com