@total-order/lex

1.0.0 • Public • Published

🍡 @total-order/lex

Lexicographical comparison functions for JavaScript. See docs.

import { reversed } from '@total-order/reversed' ;
import { lexicographical } from '@total-order/lex' ;
import { increasing } from '@total-order/primitive' ;
let order = reversed( lexicographical( increasing ) ) ;
order( [ 1 , 1 ] , [ 1 , 2 ] )  >  0 ; // true

License Version Tests Dependencies Dev dependencies GitHub issues Downloads

Code issues Code maintainability Code coverage (cov) Code technical debt Documentation Package size

📜 References

/@total-order/lex/

    Package Sidebar

    Install

    npm i @total-order/lex

    Weekly Downloads

    32

    Version

    1.0.0

    License

    AGPL-3.0

    Unpacked Size

    531 kB

    Total Files

    16

    Last publish

    Collaborators

    • raskat
    • aureooms