Home > sculp-js > stringKebabCase
stringKebabCase() function
将字符串转换为连字格式
Signature:
typescript
export declare function stringKebabCase(string: string, separator?: string): string;Parameters
Parameter | Type | Description |
|---|---|---|
string | string | |
separator | string | (Optional) 分隔符,默认是"-"(短横线) |
Returns:
string
{string}