Skip to content

Latest commit

 

History

History
12 lines (7 loc) · 1.44 KB

File metadata and controls

12 lines (7 loc) · 1.44 KB

Capitalize Words hard #template-literal

by Anthony Fu @antfu

Take the Challenge    日本語

Implement CapitalizeWords<T> which converts the first letter of each word of a string to uppercase and leaves the rest as-is.

For example

type capitalized = CapitalizeWords<'hello world, my friends'> // expected to be 'Hello World, My Friends'

Back Share your Solutions Check out Solutions