Replace 中等 #template-literal

by Anthony Fu @antfu

接受挑战    English 日本語 한국어

实现 `Replace` 将字符串 `S` 中的第一个子字符串 `From` 替换为 `To` 。 例如 ```ts type replaced = Replace<'types are fun!', 'fun', 'awesome'> // 期望是 'types are awesome!' ```
返回首页 分享你的解答 查看解答