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.

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.

wrap.class.ts
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