getOpening()

Wrap.prototype.getOpening()

Gets the opening chars of the wrap by returning the #opening property of a specified object.

wrap.class.ts
public getOpening(): Opening {
  return this.#opening;
}

Returns

The return value is opening chars of a generic type variable Opening.

Example usage

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

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

Last updated