iT邦幫忙

鐵人檔案

2024 iThome 鐵人賽
回列表
JavaScript

TypeScript Type Challenges 冒險篇章:30 天闖關之旅,type 簡單了?你確定? 系列

大家好!在接下來的30天裡,我們每天都會面對一個 Type Challenge 的挑戰題目。天降 TypeScript 於你,你準備好迎接了嗎?

我們將從基礎開始,一步步提升,經歷挑戰的起伏,有時會遇到讓人憂鬱的困難,也會體驗到突破難關的成就感。我們將一起庖丁解code,闖過30關,斬下31將!

準備好讓 TypeScript 變得簡單又有趣了嗎?快來迎接這場挑戰,享受過關後的 type平盛事吧!

鐵人鍊成 | 共 30 篇文章 | 4 人訂閱 訂閱系列文 RSS系列文
DAY 21

第21關:Trim Left!TypeScript 左撇剪刀手:移除字串開頭空白

第21關:Trim Left 關卡簡介 Implement TrimLeft<T> which takes an exact string typ...

2024-10-05 ‧ 由 wayz 分享
DAY 22

第22關:Trim!TypeScript 剪刀手:移除字串頭尾空白

第22關:Trim 關卡簡介 Implement Trim<T> which takes an exact string type and ret...

2024-10-06 ‧ 由 wayz 分享
DAY 23

第23關:Capitalize!TypeScript 字母哥:把第一個字母變成大寫

第23關:Capitalize 關卡簡介 Implement Capitalize<T> which converts the first let...

2024-10-07 ‧ 由 wayz 分享
DAY 24

第24關:Replace!TypeScript 下忍替身術:變換字串

第24關:Replace 關卡簡介 Implement Replace<S, From, To> which replace the string...

2024-10-08 ‧ 由 wayz 分享
DAY 25

第25關:ReplaceAll!TypeScript 中忍替身術:變換全部字串

第25關:ReplaceAll 關卡簡介 Implement ReplaceAll<S, From, To> which replace the...

2024-10-09 ‧ 由 wayz 分享
DAY 26

第26關:Append Argument!TypeScript 變形金剛:參數拼裝車

第26關:Append Argument 關卡簡介 For given function type Fn, and any type A (any in th...

2024-10-10 ‧ 由 wayz 分享
DAY 27

第27關:Permutation!TypeScript 黑板上排列組合:你捨得解開嗎?

第27關:Permutation!TypeScript 黑板上排列組合:你捨得解開嗎? 第27關:Permutation 關卡簡介 Implement per...

2024-10-11 ‧ 由 wayz 分享
DAY 28

第28關:Length of String!TypeScript 司馬遷,字"子長":字串有多長?

第28關:Length of String 關卡簡介 Compute the length of a string literal, which behave...

2024-10-12 ‧ 由 wayz 分享
DAY 29

第29關:Flatten!TypeScript 軍中情人:你問我愛你有多深~陣列有幾層?

第29關:Flatten 關卡簡介 In this challenge, you would need to write a type that takes...

2024-10-13 ‧ 由 wayz 分享
DAY 30

第30關:Special Edition - Endgame:FP & GMT

Well, here we are! Not only is today the final day of the challenge, but (drumr...

2024-10-14 ‧ 由 wayz 分享