Back to Strings
replace
Replace occurrences of a substring.
Syntax
replace(s, old, new) → String with replacements applied
Backends
TypeScript
Description
Replace occurrences of a substring.
Parameters
| Name | Description |
|---|---|
| s | Input string |
| old | Substring to find |
| new | Replacement string |
Returns
String with replacements applied