snakeCase()
function snakeCase(str): string;
Defined in: string/snakeCase.ts:12
将字符串转换为蛇形格式
Parameters
| Parameter | Type |
|---|---|
str | string |
Returns
string
Example
camelCase -> camel_case
camel case -> camel_case
function snakeCase(str): string;
Defined in: string/snakeCase.ts:12
将字符串转换为蛇形格式
| Parameter | Type |
|---|---|
str | string |
string
camelCase -> camel_case
camel case -> camel_case