compare-by
Version:
A versatile utility library for sorting arrays of objects by one or multiple keys with customizable sort directions.
10 lines • 384 B
TypeScript
import { CompareDirection } from './types';
/**
* Compare date values.
* @param {Date} a The first value.
* @param {Date} b The second value.
* @param {CompareDirection} dir The direction to compare.
* @returns {number} 0 if values are equal.
*/
export declare const compareDates: (a: Date, b: Date, dir?: CompareDirection) => number;
//# sourceMappingURL=compare-dates.d.ts.map