EndsWith 中等 #template-literal

by jiangshan @jiangshanmeta

接受挑战    English

实现`EndsWith`,接收两个string类型参数,然后判断`T`是否以`U`结尾,根据结果返回`true`或`false` 例如: ```typescript 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 ```
返回首页 分享你的解答 查看解答

相关挑战

2688・StartsWith