UNPKG

@studiohyperdrive/utils

Version:
9 lines (8 loc) 284 B
/** * Compares two strings alphabetically using localeCompare. * * @param a - String to compare * @param b - String to compare * @param key - specific value from object that you want to compare */ export declare const stringComparator: (a: any, b: any, key?: string) => number;