questions/02688-medium-startswith/README.zh-CN.md
实现StartsWith<T, U>,接收两个string类型参数,然后判断T是否以U开头,根据结果返回true或false
例如:
type a = StartsWith<'abc', 'ac'> // expected to be false
type b = StartsWith<'abc', 'ab'> // expected to be true
type c = StartsWith<'abc', 'abcd'> // expected to be false
<a href="../../README.zh-CN.md" target="_blank"></a> <a href="https://tsch.js.org/2688/answer/zh-CN" target="_blank"></a> <a href="https://tsch.js.org/2688/solutions" target="_blank"></a> <hr><h3>相关挑战</h3><a href="https://github.com/type-challenges/type-challenges/blob/main/questions/02693-medium-endswith/README.zh-CN.md" target="_blank"></a> <!--info-footer-end-->