https://github.com/make-github-pseudonymous-again/js-compare
:balance_scale: Comparison functions for JavaScript
https://github.com/make-github-pseudonymous-again/js-compare
agpl compare comparison heaps javascript js search-trees searching sorting
Last synced: 7 months ago
JSON representation
:balance_scale: Comparison functions for JavaScript
- Host: GitHub
- URL: https://github.com/make-github-pseudonymous-again/js-compare
- Owner: make-github-pseudonymous-again
- License: agpl-3.0
- Created: 2014-10-30T21:48:36.000Z (almost 11 years ago)
- Default Branch: main
- Last Pushed: 2022-05-26T10:42:36.000Z (over 3 years ago)
- Last Synced: 2024-10-22T21:25:25.327Z (12 months ago)
- Topics: agpl, compare, comparison, heaps, javascript, js, search-trees, searching, sorting
- Homepage:
- Size: 956 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
:balance_scale: `js-compare`
[](https://raw.githubusercontent.com/make-github-pseudonymous-again/js-compare/main/LICENSE)
==This package is deprecated. Please use a combination of
- [`Math.sign`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/sign):
For `sign`.
- [`@total-order/primitive`](https://github.com/total-order/primitive):
To compare numbers, strings, and bigints.
- [`@total-order/lex`](https://github.com/total-order/lex):
For all lexicographical ordering functions.
- [`@total-order/key`](https://github.com/total-order/key):
For `key` (was `fn`), `len`, and `prop` (was `attr`).
- [`@total-order/reversed`](https://github.com/total-order/reversed):
For `reversed` (was `reverse`).New functionality has been made available as well:
- [`@total-order/date`](https://github.com/total-order/date):
To compare `Date` objects.
- [`@total-order/iter`](https://github.com/total-order/iter):
To compare `Iterable` or `Iterator` objects lexicographically.
- [`total-order`](https://github.com/total-order/any):
To compare arbitrary JavaScript values.