Skip to content

kebabCase

Convert a string to kebab-case.

Usage

ts
import { kebabCase } from 'rattail'

kebabCase('HelloWorld') // return 'hello-world'
kebabCase('fooBar') // return 'foo-bar'

Arguments

ArgTypeDefaults
valuestring

Return

Type
string