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