category |
---|
String Operation |
Replace the camelCase or PascalCase string with kebab-case.
import type { KebabCase } from '@utype/core'
// Expect: "foo-bar-baz"
type FooBarBaz = KebabCase<"fooBarBaz">
// Expect: "foo-bar-baz"
type FooBarBaz2 = KebabCase<"FooBarBaz">