Trim medium #template-literal

by Anthony Fu @antfu

Take the Challenge    简体中文 日本語 한국어

Implement `Trim` which takes an exact string type and returns a new string with the whitespace from both ends removed. For example ```ts type trimmed = Trim<' Hello World '> // expected to be 'Hello World' ```
Back Share your Solutions Check out Solutions

Related Challenges

106・Trim Left 4803・Trim Right