Skip to content

Latest commit

 

History

History
12 lines (7 loc) · 1.68 KB

File metadata and controls

12 lines (7 loc) · 1.68 KB

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