redblack

Red-black tree for Node.js and the browser

redblack.js

Red-black tree for Node.js and the browser

var tree = redblack.tree();

tree.insert('foo', 'bar');
console.log(tree.get('foo')); // -> 'bar'
tree.delete('foo');
console.log(tree.get('foo')); // -> null

Releases are available on GitHub or via NPM.

npm install redblack

Development: redblack.js Production: redblack.min.js