> For the complete documentation index, see [llms.txt](https://wrapper.angular-package.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wrapper.angular-package.dev/wrap/methods/instance/getclosing.md).

# getClosing()

## `Wrap.prototype.getClosing()`

Gets the [closing](/getting-started/basic-concepts.md#closing) chars of the wrap by returning the [`#closing`](/wrap/properties/closing.md) property of a specified object.

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

```typescript
public getClosing(): Closing {
  return this.#closing;
}
```

{% endcode %}

### Returns

The **return value** is [`closing`](/wrap/accessors/closing.md) chars of a generic type variable [`Closing`](/wrap/generic-type-variables.md#wrap-closing).

## Example usage

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

// Returns ] of type "]".
new Wrap(`[`, `]`).getClosing();
```
