Skip to content

Latest commit

 

History

History
12 lines (7 loc) · 2.16 KB

File metadata and controls

12 lines (7 loc) · 2.16 KB

Trim medium #template-literal

by Anthony Fu @antfu

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

Implement Trim<T> which takes an exact string type and returns a new string with the whitespace from both ends removed.

For example

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