KebabCase medium #template-literal

by Johnson Chu @johnsoncodehk

Take the Challenge    日本語 한국어

Replace the `camelCase` or `PascalCase` string with `kebab-case`. `FooBarBaz` -> `foo-bar-baz` For example ```ts type FooBarBaz = KebabCase<"FooBarBaz"> const foobarbaz: FooBarBaz = "foo-bar-baz" type DoNothing = KebabCase<"do-nothing"> const doNothing: DoNothing = "do-nothing" ```
Back Share your Solutions Check out Solutions

Related Challenges

114・CamelCase