Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ActiveState/code
/ replaceAll
Function
replaceAll
recipes/JavaScript/578517_Music_player/recipe-578517.js:133–136 ·
view source on GitHub ↗
(txt, s_replace, with_this)
Source
from the content-addressed store, hash-verified
131
}
132
133
function
replaceAll(txt, s_replace, with_this)
134
{
135
return
txt.replace(
new
RegExp(s_replace,
'g'
),with_this);
136
}
137
138
function
SetCookie(name,value)
139
{
Callers
4
censored_str
Function · 0.85
replace_all_upper
Function · 0.85
do_artist_search
Function · 0.85
do_youtube
Function · 0.85
Calls
1
replace
Method · 0.45
Tested by
no test coverage detected