Buckets
A JavaScript Data Structure Library
Buckets is a complete, fully tested and documented data structure library written in pure JavaScript.
Included data structures
- Linked List
- Dictionary
- Multi Dictionary
- Binary Search Tree
- Stack
- Queue
- Set
- Bag
- Binary Heap
- Priority Queue
Buckets also includes several functions for manipulating arrays.
Supported platforms
- Every desktop and mobile browser (including IE6)
- Node.js
If it supports JavaScript, it probably supports buckets.
Downloading Buckets
Download directly
- buckets.js (for development) or
- buckets.min.js (for production)
Then, add it as a script tag to your page:
Or install bucketsjs
using bower
bower install bucketsjs
Or use an AMD loader
;
Or install buckets-js
using npm
npm install buckets-js
In Node.js: var buckets = require('buckets-js');
.
Usage
var a = ;var b = ;a;a;b;a; // {1,2}
Read the documentation.
Building Buckets
There's nothing else you need to use buckets. However, this guide may help you if you wish to contribute to the project or modify it.