Skip to content

total-order/date

Repository files navigation

Comparison of Date objects for JavaScript. See docs.

import {increasing} from '@total-order/date';
increasing(new Date(0), new Date(1)) < 0; // true

import {PairingHeap as Heap} from '@heap-data-structure/pairing-heap';
const heap = new Heap(increasing);
heap.push(new Date());

License Version Tests Dependencies GitHub issues Downloads

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