Trim: TrimLeft<TrimRight<V>>

Remove leading and trailing spaces from a string.

Type Parameters

  • V extends string
import type {Trim} from 'type-fest';

Trim<' foo '>
//=> 'foo'