https://github.com/lnsp/js-stdlib
The JavaScript Standard Container Library
https://github.com/lnsp/js-stdlib
Last synced: 3 months ago
JSON representation
The JavaScript Standard Container Library
- Host: GitHub
- URL: https://github.com/lnsp/js-stdlib
- Owner: lnsp
- License: mit
- Created: 2015-01-07T18:03:41.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-01-08T20:52:35.000Z (over 11 years ago)
- Last Synced: 2025-08-10T00:02:59.327Z (10 months ago)
- Language: JavaScript
- Size: 277 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
JavaScript Standard Container Library
==============================
The JSCL provides a standard set of data structure and algorithm implementations to help JS devs by removing boilerplate code.
### Be careful
> This is development level software. Please do not unless you are
> familiar with what that means and are comfortable using that type
> of software.
Usage
-----------------
Install the package using `bower install jscl`. There should be a `lib` folder containing the minified and the standard version of the library. Just include it using the `` tag.
Data structures
-----------------
###Common methods
- `empty()` checks if the data structure has no content
- `size()` returns the count of elements that the object contains
- `clear()` deletes all objects in the container
###Included data structures
- Stacks (`push(obj)` | `pop()` | `peek()` | `empty()` | `size()` | `clear()`)
- Queue (`offer(obj)`| `poll()`| `peek()` | `empty()` | `size()`| `clear()`)
---------------------------------------------------------------------------------------------------
[License (MIT)](./LICENSE.txt)