上一页 1 ··· 108 109 110 111 112 113 114 115 116 ··· 496 下一页
摘要: Implement Trim<T> which takes an exact string type and returns a new string with the whitespace from both ends removed. For example type trimmed = Tri 阅读全文
posted @ 2022-09-11 21:28 Zhentiw 阅读(25) 评论(0) 推荐(0)
摘要: Implement TrimLeft<T> which takes an exact string type and returns a new string with the whitespace beginning removed. For example type trimed = TrimL 阅读全文
posted @ 2022-09-11 20:59 Zhentiw 阅读(34) 评论(0) 推荐(0)
摘要: Sometimes, you may want to lookup for a type in a union to by their attributes. In this challenge, we would like to get the corresponding type by sear 阅读全文
posted @ 2022-09-11 18:57 Zhentiw 阅读(29) 评论(0) 推荐(0)
摘要: Type the function PromiseAll that accepts an array of PromiseLike objects, the returning value should be Promise<T> where T is the resolved result arr 阅读全文
posted @ 2022-09-09 14:51 Zhentiw 阅读(54) 评论(0) 推荐(0)
摘要: TypeScript 4.0 is recommended in this challenge Implement a generic Pop<T> that takes an Array T and returns an Array without it's last element. For e 阅读全文
posted @ 2022-09-09 14:21 Zhentiw 阅读(34) 评论(0) 推荐(0)
摘要: TypeScript 4.0 is recommended in this challenge Implement a generic Last<T> that takes an Array T and returns its last element. For example type arr1 阅读全文
posted @ 2022-09-09 14:16 Zhentiw 阅读(35) 评论(0) 推荐(0)
摘要: Scan reads user input Takes a pointer as an argument Typed data is written to pointer Return number of scanned items var appleNum int fmt.Printf("Numb 阅读全文
posted @ 2022-09-08 18:07 Zhentiw 阅读(31) 评论(0) 推荐(0)
摘要: iota Generate a set of related but distinct constants Often represents a property which has several distinct possible values Dyas of the week Months o 阅读全文
posted @ 2022-09-08 15:08 Zhentiw 阅读(25) 评论(0) 推荐(0)
摘要: namespace AllGreetings { export namespace Greetings { export function returnGreeting (greeting: string) { console.log(`The message from namespace Gree 阅读全文
posted @ 2022-09-08 14:54 Zhentiw 阅读(74) 评论(0) 推荐(0)
摘要: Chainable options are commonly used in Javascript. But when we switch to TypeScript, can you properly type it? In this challenge, you need to type an 阅读全文
posted @ 2022-09-08 14:34 Zhentiw 阅读(93) 评论(0) 推荐(0)
上一页 1 ··· 108 109 110 111 112 113 114 115 116 ··· 496 下一页