showing results for - "javascript replace without replace 28 29"
Latoya
01 Jan 2021
1function fakeReplace(data, substr, newstr) {
2    return data.map(function(s) {
3       return s.split(substr).join(newstr);
4    })
5}