Instance accessors

The properties of `Wrap` the string object.

Public

Wrap.prototype.closing

The getarrow-up-right accessor gets the closing of the wrap by returning the #closing property of the specified object.

wrap.class.ts
public get closing(): Closing {
  return this.#closing;
}

Returns

The return value is closing of the wrap of a generic type variable Closingarrow-up-right.

Example usage

// Example usage.
import { Wrap } from '@angular-package/text';

// Returns ] of type "]".
new Wrap(`[`, `]`, 'quote').closing;

Wrap.prototype.opening

The getarrow-up-right accessor gets the opening of the wrap by returning the #opening property of the specified object.

Returns

The return value is the opening of the wrap of a generic type variable Openingarrow-up-right.

Example usage

Wrap.prototype.text

The getarrow-up-right accessor gets the text of the Wrap by returning the #text property of a specified object.

Returns

The return value is the text of a generic type variable Text.

Example usage

[Symbol.toStringTag]

The getarrow-up-right accessor, with the help of toStringTagarrow-up-right of Symbol, changes the default object tag to wrap for an instance of the Wrap.

circle-info

Good to know: The property can be read by the typeOf() function of the type package.

Example usage

Last updated