UNPKG

compare-by

Version:

A versatile utility library for sorting arrays of objects by one or multiple keys with customizable sort directions.

3 lines 210 B
import { CompareDirection } from './types'; export declare const compareValues: <T = string | number | boolean | Date>(a: T, b: T, dir?: CompareDirection) => number; //# sourceMappingURL=compare-values.d.ts.map