ss-comparator
v1.0.1
Published
[![MIT Licence](https://badges.frapsoft.com/os/mit/mit.svg?v=103)](https://opensource.org/licenses/mit-license.php) [![npm version](https://badge.fury.io/js/ss-comparator.svg)](https://badge.fury.io/js/ss-comparator)
Downloads
9,074
Readme
ss-comparator
General Comparator
- written in Typescript
- migrated from javascript-algorithms/Comparator.js
- be required by Data-Structure Serial library, such as ss-linked-list、ss-heap、ss-tree and so on;
Installation
Node.js / Browserify
npm install ss-comparator --save
var Comparator = require('ss-comparator');
Global object
Include the pre-built script.
<script src="./dist/index.umd.min.js"></script>
Build & test
npm run build
npm test
document
npm run doc
then open the generated out/index.html
file in your browser.
License
MIT.