Skip to content

Latest commit

 

History

History
31 lines (25 loc) · 2.13 KB

README.md

File metadata and controls

31 lines (25 loc) · 2.13 KB

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 GitHub issues Downloads

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

📜 References