@feathersjs/adapter-commons
Version:
Shared database adapter utility functions
7 lines (6 loc) • 388 B
TypeScript
export declare function compareNSB(a: number | string | boolean, b: number | string | boolean): 0 | 1 | -1;
export declare function compareArrays(a: any[], b: any[]): 0 | 1 | -1;
export declare function compare(a: any, b: any, compareStrings?: (a: any, b: any) => 0 | 1 | -1): 0 | 1 | -1;
export declare function sorter($sort: {
[key: string]: -1 | 1;
}): (a: any, b: any) => number;