Skip to content

Latest commit

 

History

History
12 lines (7 loc) · 1.88 KB

File metadata and controls

12 lines (7 loc) · 1.88 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 trimed = Trim<'  Hello World  '> // expected to be 'Hello World'

Back Share your Solutions Check out Solutions

Related Challenges

106・Trim Left 4803・Trim Right