/// replace "abc" with "" (blank string) str.replace(/abc/g, '');
str.replace(/abc/g, '');
function replaceAll(string, search, replace) { return string.split(search).join(replace); } const output = replaceAll(Url, type, changeType);