# Wrap {}

- [Overview](https://wrapper.angular-package.dev/wrapper-draft/wrap/overview.md): The \`Wrap\` primitive wrapper object
- [Generic type variables](https://wrapper.angular-package.dev/wrapper-draft/wrap/generic-type-variables.md): The \`Wrap\` primitive wrapper object generic type variables
- [★ Constructor](https://wrapper.angular-package.dev/wrapper-draft/wrap/constructor.md)
- [Accessors](https://wrapper.angular-package.dev/wrapper-draft/wrap/accessors.md): The \`Wrap\` primitive wrapper object accessors
- [get closing()](https://wrapper.angular-package.dev/wrapper-draft/wrap/accessors/get-closing.md): The \`get\` accessor gets the closing of the wrap by returning the \`#closing\` property of the specified object.
- [get opening()](https://wrapper.angular-package.dev/wrapper-draft/wrap/accessors/get-opening.md): The \`get\` accessor gets the opening of the wrap by returning the \`#opening\` property of the specified object.
- [get text()](https://wrapper.angular-package.dev/wrapper-draft/wrap/accessors/get-text.md): The \`get\` accessor gets the text of the \`Wrap\` by returning the \`#text\` property of a specified object.
- [get \[Symbol.toStringTag\]()](https://wrapper.angular-package.dev/wrapper-draft/wrap/accessors/get-symbol.tostringtag.md)
- [Properties](https://wrapper.angular-package.dev/wrapper-draft/wrap/properties.md): The \`Wrap\` primitive wrapper object properties
- [#closing](https://wrapper.angular-package.dev/wrapper-draft/wrap/properties/closing.md)
- [#opening](https://wrapper.angular-package.dev/wrapper-draft/wrap/properties/opening.md)
- [#text](https://wrapper.angular-package.dev/wrapper-draft/wrap/properties/text.md)
- [Methods](https://wrapper.angular-package.dev/wrapper-draft/wrap/methods.md): The \`Wrap\` primitive wrapper object methods
- [↓ Static](https://wrapper.angular-package.dev/wrapper-draft/wrap/methods/static.md): The \`Wrap\` primitive wrapper object static methods
- [static hasClosing()](https://wrapper.angular-package.dev/wrapper-draft/wrap/methods/static-hasclosing.md): Checks whether the text has given closing chars at the end.
- [static hasOpening()](https://wrapper.angular-package.dev/wrapper-draft/wrap/methods/static-hasopening.md): Checks whether the text has given opening chars at the beginning.
- [static isWrap()](https://wrapper.angular-package.dev/wrapper-draft/wrap/methods/static-iswrap.md): The method checks whether the value of any type is the Wrap instance of any or given opening and closing chars.
- [↓ Instance](https://wrapper.angular-package.dev/wrapper-draft/wrap/methods/instance.md)
- [getClosing()](https://wrapper.angular-package.dev/wrapper-draft/wrap/methods/getclosing.md): Gets the closing chars of the wrap by returning the \`#closing\` property of a specified object.
- [getOpening()](https://wrapper.angular-package.dev/wrapper-draft/wrap/methods/getopening.md): Gets the opening chars of the wrap by returning the #opening property of a specified object.
- [getText()](https://wrapper.angular-package.dev/wrapper-draft/wrap/methods/gettext.md): Gets the text of the wrap by returning the #text property of a specified object, without the opening and closing chars of the Wrap.
- [hasClosing()](https://wrapper.angular-package.dev/wrapper-draft/wrap/methods/hasclosing.md): Checks whether the primitive value of a specified object has the closing chars or given closing chars.
- [hasOpening()](https://wrapper.angular-package.dev/wrapper-draft/wrap/methods/hasopening.md): Checks whether the primitive value of a specified object has the opening chars or given opening chars.
- [hasText()](https://wrapper.angular-package.dev/wrapper-draft/wrap/methods/hastext.md): The method checks whether the text of a specified Wrap object is defined, which means it's a string of at least one char and optionally equal to the given text.
- [isWrapped()](https://wrapper.angular-package.dev/wrapper-draft/wrap/methods/iswrapped.md): The method checks whether the primitive value of the specified object is wrapped by the opening and closing chars of an instance or given opening and closing chars.
- [★ replaceClosing()](https://wrapper.angular-package.dev/wrapper-draft/wrap/methods/replaceclosing.md): Returns the primitive value with replaced closing chars.
- [★ replaceOpening()](https://wrapper.angular-package.dev/wrapper-draft/wrap/methods/replaceopening.md): Returns the primitive value with replaced opening chars.
- [★ replaceText()](https://wrapper.angular-package.dev/wrapper-draft/wrap/methods/replacetext.md): Returns the primitive value with replaced text.
- [toString()](https://wrapper.angular-package.dev/wrapper-draft/wrap/methods/tostring.md): Gets the wrap, the primitive value of a specified Wrap object.
- [valueOf()](https://wrapper.angular-package.dev/wrapper-draft/wrap/methods/valueof.md): Returns the wrap, primitive value of a specified Wrap object.
- [Example usage](https://wrapper.angular-package.dev/wrapper-draft/wrap/example-usage.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wrapper.angular-package.dev/wrapper-draft/wrap.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
