1 contributor
Like
Install replace as a package?
Copied
npm i @bit/justin-capalbo.ramda.replace
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example modifieddraft
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
and packages in Bit or NPM to the example. any of the 1 million componentstoggle layout
No preview available
chevron_left
chevron_right
replace (
pattern:
(RegExp | String)
,replacement:
String
,str:
) : String
String
Replace a substring or regex match in a string with a replacement.
The first two parameters correspond to the parameters of the
String.prototype.replace()
function, so the second parameter can also be a
function.
Example
Arguments
pattern:
(RegExp | String)
A regular expression or a substring to match.
replacement:
String
The string to replace the matches with.
str:
String
The String to do the search and replacement in.
Returns
String
The result.