Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 1.73 KB

File metadata and controls

17 lines (11 loc) · 1.73 KB

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

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