crystalline
Version:
A modern utility library with a strong emphasis on readability. Make your code crystal clear.
14 lines (13 loc) • 594 B
TypeScript
declare const sort: (arr: any[]) => {
ascendingByProperty: (prop: string) => any[];
descendingByProperty: (prop: string) => any[];
firstAscendingByProperty: (prop1: string) => {
thenAscendingByProperty: (prop2: string) => Record<string, unknown>[];
thenDescendingByProperty: (prop2: string) => Record<string, unknown>[];
};
firstDescendingByProperty: (prop1: string) => {
thenAscendingByProperty: (prop2: string) => Record<string, unknown>[];
thenDescendingByProperty: (prop2: string) => Record<string, unknown>[];
};
};
export { sort };