44. implement ReplaceAll<S, F, T>
分享给更多人
-通过 / -执行
Just like String.prototype.replaceAll()
,
please implement ReplaceAll<S, F, T>
.
type A = ReplaceAll<'aba', 'b', ''> // 'aa'type B = ReplaceAll<'ababbab', 'b', ''> // 'aaa'
-通过 / -执行
Just like String.prototype.replaceAll()
,
please implement ReplaceAll<S, F, T>
.
type A = ReplaceAll<'aba', 'b', ''> // 'aa'type B = ReplaceAll<'ababbab', 'b', ''> // 'aaa'