replaceOpeningIn()
Wrapper.prototype.replaceOpeningIn()
Wrapper.prototype.replaceOpeningIn()Replaces the opening chars of the Wrapper object in the given text with a given replacement value.
public replaceOpeningIn(text: string, replaceValue: string): string {
return Wrapper.replaceOpening(text, this.opening, replaceValue);
}Parameters
text: string
text: stringThe text of string type in which the opening chars are replaced by given replacement value.
replaceValue: string
replaceValue: stringThe value of string type as a replacement for the opening chars at the beginning of the given text.
Returns
The return value is the given text of string type with replaced opening chars by given replacement value.
Example usage
Last updated
Was this helpful?