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