StartsWith 中等 #template-literal

by jiangshan @jiangshanmeta

接受挑战    English

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

相关挑战

2693・EndsWith