Back to Type Challenges

README

questions/02070-medium-drop-char/README.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" target="_blank"></a> &nbsp;&nbsp;&nbsp;<a href="./README.zh-CN.md" target="_blank"></a> </p><!--info-header-end-->

Drop a specified char from a string.

For example:

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

<a href="../../README.md" target="_blank"></a> <a href="https://tsch.js.org/2070/answer" target="_blank"></a> <a href="https://tsch.js.org/2070/solutions" target="_blank"></a> <hr><h3>Related Challenges</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-->