UNPKG

@technobuddha/library

Version:
10 lines (9 loc) 286 B
/** * 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 */ export declare function ensurePrefix(input: string, prefix: string): string; export default ensurePrefix;