@technobuddha/library
Version:
A large library of useful functions
13 lines (12 loc) • 435 B
TypeScript
/**
* Determine the group code (A-Z, [] or #) to place an item under
*
* @remarks The group code is made by taking the first letter of the *description*. As a special
* case descriptions starting with '[' are grouped under [] and anything that isn't a letter is grouped
* under #.
*
* @param input a description
* @returns The group code
*/
export declare function groupCode(input: string): string;
export default groupCode;