Answers for "javascript replace without replace()"

0

javascript replace without replace()

function fakeReplace(data, substr, newstr) {
    return data.map(function(s) {
       return s.split(substr).join(newstr);
    })
}
Posted by: Guest on September-04-2020

Code answers related to "javascript replace without replace()"

Code answers related to "Javascript"

Browse Popular Code Answers by Language