Back to Type Challenges

README.Zh CN

questions/02070-medium-drop-char/README.zh-CN.md

latest1.7 KB
Original Source
<!--info-header-start--><h1>Drop Char </h1><blockquote><p>by CaptainOfPhB <a href="https://github.com/CaptainOfPhB" target="_blank">@CaptainOfPhB</a></p></blockquote><p><a href="https://tsch.js.org/2070/play/zh-CN" target="_blank"></a> &nbsp;&nbsp;&nbsp;<a href="./README.md" target="_blank"></a> </p><!--info-header-end-->

从字符串中剔除指定字符。

例如:

ts
type Butterfly = DropChar<' b u t t e r f l y ! ', ' '> // 'butterfly!'
<!--info-footer-start-->

<a href="../../README.zh-CN.md" target="_blank"></a> <a href="https://tsch.js.org/2070/answer/zh-CN" target="_blank"></a> <a href="https://tsch.js.org/2070/solutions" target="_blank"></a> <hr><h3>相关挑战</h3><a href="https://github.com/type-challenges/type-challenges/blob/main/questions/02059-hard-drop-string/README.md" target="_blank"></a> <!--info-footer-end-->