@technobuddha/library
Version:
A large library of useful functions
16 lines (15 loc) • 471 B
TypeScript
/**
* Attempt to convert the input string into the same case as the target string
*
* @remarks The best guess is made to try to figure out what case the target is in:
* * lowercase
* * UPPERCASE
* * Capitalcase
* * sMALLCASE
*
* @param input The input string
* @param target The target string
* @returns The input in the case case as the target string
*/
export declare function matchCase(input: string, target: string): string;
export default matchCase;