type-challenges/questions/00116-medium-replace
2022-09-04 00:06:29 +00:00
..
2022-09-04 00:06:29 +00:00
2022-09-04 00:06:29 +00:00
2022-09-04 00:06:29 +00:00
2022-09-04 00:06:29 +00:00
2022-04-20 17:40:04 +08:00

Replace medium #template-literal

by Anthony Fu @antfu

Take the Challenge    简体中文 日本語 한국어

Implement Replace<S, From, To> which replace the string From with To once in the given string S

For example

type replaced = Replace<'types are fun!', 'fun', 'awesome'> // expected to be 'types are awesome!'

Back Share your Solutions Check out Solutions