dasherize
Преобразует строку в kebab-case.
dasherize
Сигнатура
typescript
function dasherize(str: string): stringПримеры
typescript
import { dasherize } from 'strio'
dasherize('helloWorld')
// "hello-world"
dasherize('HelloWorld')
// "hello-world"Связанные функции
- camelize - camelCase
- pascalize - PascalCase
- underscore - snake_case
- slugify - URL slug