@technobuddha/library
Version: 
A large library of useful functions
10 lines (9 loc) • 301 B
TypeScript
/**
 * Add a prefix to a string, if it does not already have the prefix
 * @param input - The string
 * @param prefix - The prefix
 * @returns The prefix followed by the string
 * @group String
 * @category Construction
 */
export declare function ensurePrefix(input: string, prefix: string): string;