Package Exports
- jstandard
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (jstandard) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
JStandard

JStandard offers standard data structures for javascript, paying attention to performance and developer-friendly usage.
Javascript developer pays little to none attention to the correct usage of Data Structures since most of them are not (well) coded, are not performant or easy to use. This library aims to cover the most common Data Structures covered by a sweet suit of unit tests!
Structures Available
- Circular Buffer
- Priority Queue
- Linked List
- Sorted Linked List
- Stack
- Binary Search Tree
- AVL
- Ordered Set
- Unordered Set
Usage Example
import { BinarySearchTree } from 'jstandard';
//Create a new Binary Search Tree
const binarySearchTree = new BinarySearchTree();
//Set iteration mode to desired mode
binarySearchTree.setIterationMode(binarySearchTree.INORDER);
//Insert random values
binarySearchTree.insert(1);
binarySearchTree.insert(4);
binarySearchTree.insert(3);
binarySearchTree.insert(6);
binarySearchTree.insert(7);
binarySearchTree.insert(2);
binarySearchTree.insert(3);
binarySearchTree.insert(9);
binarySearchTree.insert(19);
binarySearchTree.insert(20);
binarySearchTree.insert(3);
binarySearchTree.insert(15);
//Iterate natively
for (let node of binarySearchTree) {
console.log(node.value);
}
// OUPUT 1 2 3 4 6 7 9 15 19 20