# getOpening()

## `Wrap.prototype.getOpening()`

Gets the [opening](https://wrapper.angular-package.dev/getting-started/basic-concepts#opening) chars of the wrap by returning the [`#opening`](https://wrapper.angular-package.dev/wrap/properties/opening) property of a specified object.

{% code title="wrap.class.ts" %}

```typescript
public getOpening(): Opening {
  return this.#opening;
}
```

{% endcode %}

### Returns

The **return value** is [`opening`](https://wrapper.angular-package.dev/wrap/accessors/opening) chars of a generic type variable [`Opening`](https://wrapper.angular-package.dev/generic-type-variables#wrap-opening).

## Example usage

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

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