Skip to content

Latest commit

 

History

History

00108-medium-trim

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

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