44. implement ReplaceAll<S, F, T>
Share
- accepted / - tried
Just like String.prototype.replaceAll()
,
please implement ReplaceAll<S, F, T>
.
type A = ReplaceAll<'aba', 'b', ''> // 'aa'type B = ReplaceAll<'ababbab', 'b', ''> // 'aaa'
- accepted / - tried
Just like String.prototype.replaceAll()
,
please implement ReplaceAll<S, F, T>
.
type A = ReplaceAll<'aba', 'b', ''> // 'aa'type B = ReplaceAll<'ababbab', 'b', ''> // 'aaa'