KebabCase
@typehero
Last updated 3 months ago
MEDIUM
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"
This challenge was ported from Type Challenges and was authored by johnsoncodehk
More Challenges
Loading...
Loading...