Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript string replace all

function replaceAll(string, search, replace) {
  return string.split(search).join(replace);
}
const output = replaceAll(Url, type, changeType);
 
PREVIOUS NEXT
Tagged: #javascript #string #replace
ADD COMMENT
Topic
Name
7+6 =