TypeScript String replace()
Syntax & Examples
Syntax of String.replace()
There are 2 variations for the syntax of String.replace() method. They are:
1.
replace(searchValue: string | RegExp, replaceValue: string): string
This method replaces text in a string, using a regular expression or search string.
2.
replace(searchValue: string | RegExp, replacer: function): string
This method