common-utils-y
Version:
my common utils lib
19 lines (18 loc) • 531 B
TypeScript
/**
* 字符串首字母大写
* @param str 需要首字母大写的字符串
* @returns 首字母大写后结果
*
* @example
* // Camel
* capitalizeFirstLetter('camel')
*/
export declare function capitalizeFirstLetter(str: string): string;
/**
* 将字符串转为小驼峰写法
* @param str 需要转换的字符串
* @param link 连接符,如 - 、空格等;默认 -
* @returns 小驼峰写法的字符串
*/
export declare function toCamelStyle(str: string, link?: string): string;
export * from './escape';