String: Drop Char

Medium
conditional types
template literal
infer
recursion

Description:

Drop a specified char from a string.

For example:

type Hello = DropChar<' h e l l o !', ' '> // 'hello!'

Code

Loading...