textReplaceClosing()
Wrapper.prototype.textReplaceClosing()
Wrapper.prototype.textReplaceClosing()public textReplaceClosing(closing: string): string {
return Wrapper.replaceClosing(this.text, this.closing, closing);
}Parameters
closing: string
closing: stringReturns
Example usage
// Example usage.
import { Wrapper } from '@angular-package/wrapper';
const longText = new Wrapper('{', '}', '{This is a long text}');
// Returns {{This is a long text}}.
longText.valueOf();
// Returns {This is a long text.
longText.textReplaceClosing('');
// Returns {This is a long text}}.
longText.textReplaceClosing('}}');Last updated