题解 - Medium2070 - Drop CharOn this page2070 - Drop CharAnswer TestCases从字符串中剔除指定字符。例如:type Butterfly = DropChar<' b u t t e r f l y ! ', ' '> // 'butterfly!'Solutiontype DropChar<S, C extends string> = S extends `${infer L}${C}${infer R}` ? DropChar<`${L}${R}`, C> : S