Skip to content

KebabCase

Category
String Operation

Replace the camelCase or PascalCase string with kebab-case.

Usage

ts
import type { 
KebabCase
} from '@utype/core'
// Expect: "foo-bar-baz" type
FooBarBaz
=
KebabCase
<"fooBarBaz">
// Expect: "foo-bar-baz" type
FooBarBaz2
=
KebabCase
<"FooBarBaz">