UNPKG

redoc

Version:
7 lines (6 loc) 281 B
/** * Function that returns a comparator for sorting objects by some specific key alphabetically. * * @param {String} property key of the object to sort, if starts from `-` - reverse */ export declare function alphabeticallyByProp<T>(property: string): (a: T, b: T) => number;