Skip to content

Latest commit

 

History

History
12 lines (7 loc) · 2.2 KB

File metadata and controls

12 lines (7 loc) · 2.2 KB

Trim 中級 #template-literal

by Anthony Fu @antfu

挑戦する    English 简体中文 한국어

文字列を受け取り、両端の空白を削除した新しい文字列を返す Trim<T> を実装します。

例えば

type trimed = Trim<'  Hello World  '> // expected to be 'Hello World'

戻る 解答を共有 解答を確認

関連する課題

106・Trim Left 4803・Trim Right