getText()
Wrap.prototype.getText()
Wrap.prototype.getText()Gets the text of the wrap by returning the #text property of a specified object, without the opening and closing chars of the Wrap.
public getText(): Text {
return this.#text;
}Returns
The return value is the text of a generic type variable Text.
Example usage
// Example usage.
import { Wrap } from '@angular-package/wrapper';
// Returns quote of type "quote".
new Wrap(`[`, `]`, 'quote').getText();Last updated
Was this helpful?