type-challenges/questions/00116-medium-replace

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