String: Trim Left

Medium
conditional types
template literal
infer
recursive

Description:

Implement TrimLeft<T> which takes an exact string type and returns a new string with the whitespace beginning removed.

For example

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

Code

Loading...