> 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/wrapper-draft/wrapper/methods/instance.md).

# ↓ Instance

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>public <a href="/wrapper-draft/wrapper/methods/isclosingin.md"><strong>isClosingIn()</strong></a><br>Determines whether the provided <a href="/wrapper-draft/wrapper/methods/isclosingin.md#text-string"><code>text</code></a> has the <a href="/wrapper-draft/wrap/accessors/get-closing.md"><code>closing</code></a> chars of the specified <a href="/wrapper-draft/wrapper/overview.md"><code>Wrapper</code></a> object at the <strong>end</strong>.</p>                                                                                                                                                                                                                                                                                                                                                                                                                        |
| <p>public <a href="/wrapper-draft/wrapper/methods/isopeningin.md"><strong>isOpeningIn()</strong></a><br>Checks whether the provided <a href="/wrapper-draft/wrapper/methods/isopeningin.md#text-string"><code>text</code></a> has the <a href="/wrapper-draft/wrap/accessors/get-opening.md"><code>opening</code></a> chars of a specified <a href="/wrapper-draft/wrapper/overview.md"><code>Wrapper</code></a> object at the <strong>beginning</strong>.</p>                                                                                                                                                                                                                                                                                                                                                                                                                        |
| <p>public <a href="/wrapper-draft/wrapper/methods/replaceclosingin.md"><strong>replaceClosingIn()</strong></a><br>Replaces the <a href="/wrapper-draft/wrap/accessors/get-closing.md"><code>closing</code></a> chars of the <a href="/wrapper-draft/wrapper/overview.md"><code>Wrapper</code></a> object in the given <a href="/wrapper-draft/wrapper/methods/replaceclosingin.md#text-string"><code>text</code></a> with a given <a href="/wrapper-draft/wrapper/methods/replaceclosingin.md#replacevalue-string">replacement value</a>.</p>                                                                                                                                                                                                                                                                                                                                         |
| <p>public <a href="/wrapper-draft/wrapper/methods/replaceopeningin.md#replacevalue-string"><strong>replaceOpeningIn()</strong></a><br>Replaces the <a href="/wrapper-draft/wrap/accessors/get-opening.md"><code>opening</code></a> chars of the <a href="/wrapper-draft/wrapper/overview.md"><code>Wrapper</code></a> object in the given <a href="/wrapper-draft/wrapper/methods/replaceopeningin.md#text-string"><code>text</code></a> with a given <a href="/wrapper-draft/wrapper/methods/replaceopeningin.md#replacevalue-string">replacement value</a>.</p>                                                                                                                                                                                                                                                                                                                     |
| <p>public <a href="/wrapper-draft/wrapper/methods/removewrapin.md"><strong>removeWrapIn()</strong></a><br>Returns given <a href="/wrapper-draft/wrapper/methods/removewrapin.md#text-string"><code>text</code></a> without the <a href="/wrapper-draft/wrap/accessors/get-opening.md"><code>opening</code></a> and <a href="/wrapper-draft/wrap/accessors/get-closing.md"><code>closing</code></a> chars of the <a href="/wrapper-draft/wrapper/overview.md"><code>Wrapper</code></a> object.</p>                                                                                                                                                                                                                                                                                                                                                                                     |
| <p>public <a href="/wrapper-draft/wrapper/methods/textreplaceclosing.md"><strong>textReplaceClosing()</strong></a><br>Replaces the <a href="/pages/QTYxQh3MKwTJRj5pYA28#wrap.prototype.closing"><code>closing</code></a> chars of the <a href="/wrapper-draft/wrapper/overview.md"><code>Wrapper</code></a> object in the <a href="/wrapper-draft/wrap/accessors/get-text.md"><code>text</code></a> of the <a href="/wrapper-draft/wrapper/overview.md"><code>Wrapper</code></a> object with the given <a href="/wrapper-draft/wrapper/methods/textreplaceclosing.md#closing-string"><code>closing</code></a> chars.</p>                                                                                                                                                                                                                                                              |
| <p>public <a href="/wrapper-draft/wrapper/methods/textreplaceopening.md"><strong>textReplaceOpening()</strong></a><br>Replaces the <a href="/wrapper-draft/wrap/accessors/get-opening.md"><code>opening</code></a> chars of the <a href="/wrapper-draft/wrapper/overview.md"><code>Wrapper</code></a> object in the <a href="/wrapper-draft/wrap/accessors/get-text.md"><code>text</code></a> of the <a href="/wrapper-draft/wrapper/overview.md"><code>Wrapper</code></a> object with the given <a href="/wrapper-draft/wrapper/methods/textreplaceopening.md#opening-string"><code>opening</code></a> chars.</p>                                                                                                                                                                                                                                                                    |
| <p>public <a href="/wrapper-draft/wrapper/methods/textunwrap.md"><strong>textUnwrap()</strong></a><br>The method returns the <a href="/wrapper-draft/wrap/accessors/get-text.md"><code>text</code></a> of the <a href="/wrapper-draft/wrapper/overview.md"><code>Wrapper</code></a> object without its <a href="/pages/QTYxQh3MKwTJRj5pYA28#wrap.prototype.opening"><code>opening</code></a> and <a href="/pages/QTYxQh3MKwTJRj5pYA28#wrap.prototype.closing"><code>closing</code></a> chars or the given <a href="#opening-string"><code>opening</code></a> and <a href="#closing-string"><code>closing</code></a> chars.</p>                                                                                                                                                                                                                                                        |
| <p>public <a href="/wrapper-draft/wrapper/methods/textwrap.md"><strong>textWrap()</strong></a><br>The method returns the <a href="/wrapper-draft/wrap/accessors/get-text.md"><code>text</code></a> of the <a href="/wrapper-draft/wrapper/overview.md"><code>Wrapper</code></a> object wrapped by the given <a href="/wrapper-draft/wrapper/methods/textwrap.md#opening-textopening"><code>opening</code></a> and <a href="/wrapper-draft/wrapper/methods/textwrap.md#closing-textclosing"><code>closing</code></a> chars.</p>                                                                                                                                                                                                                                                                                                                                                        |
| <p>public <a href="/wrapper-draft/wrapper/methods/toarray.md"><strong>toArray()</strong></a><br>Returns an <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array"><code>array</code></a> consisting of the <a href="/wrapper-draft/wrap/accessors/get-opening.md"><code>opening</code></a> chars, <a href="/wrapper-draft/wrap/accessors/get-text.md"><code>text</code></a>, and <a href="/wrapper-draft/wrap/accessors/get-closing.md"><code>closing</code></a> chars.</p>                                                                                                                                                                                                                                                                                                                                                                 |
| <p>public <a href="/wrapper-draft/wrapper/methods/towrap.md"><strong>toWrap()</strong></a><br>Returns the <a href="/wrapper-draft/wrap/overview.md"><code>Wrap</code></a> instance consists of the <a href="/wrapper-draft/wrap/accessors/get-text.md"><code>text</code></a>, <a href="/wrapper-draft/wrap/accessors/get-opening.md"><code>opening</code></a> and <a href="/wrapper-draft/wrap/accessors/get-closing.md"><code>closing</code></a> chars of the <a href="/wrapper-draft/wrapper/overview.md"><code>Wrapper</code></a> object.</p>                                                                                                                                                                                                                                                                                                                                      |
| <p>public <a href="/wrapper-draft/wrapper/methods/unwrap.md"><strong>unwrap()</strong></a><br>Returns the <a href="/wrapper-draft/wrap/accessors/get-text.md"><code>text</code></a> without the <a href="/wrapper-draft/wrap/accessors/get-opening.md"><code>opening</code></a> and <a href="/wrapper-draft/wrap/accessors/get-closing.md"><code>closing</code></a> chars.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| <p>public <a href="/wrapper-draft/wrapper/methods/unwraptext.md"><strong>unwrapText()</strong></a><br>The method returns the <a href="/wrapper-draft/wrap/methods/valueof.md">primitive value</a> of a specified <a href="/wrapper-draft/wrapper/overview.md"><code>Wrapper</code></a> object with <a href="/wrapper-draft/wrap/accessors/get-text.md"><code>text</code></a> unwrapped from the <a href="/wrapper-draft/wrap/accessors/get-opening.md"><code>opening</code></a> and <a href="/wrapper-draft/wrap/accessors/get-closing.md"><code>closing</code></a> chars of the <a href="/wrapper-draft/wrapper/overview.md"><code>Wrapper</code></a> instance or given <a href="/wrapper-draft/wrapper/methods/unwraptext.md#opening-string"><code>opening</code></a> and <a href="/wrapper-draft/wrapper/methods/unwraptext.md#closing-string"><code>closing</code></a> chars.</p> |
| <p>public <a href="/wrapper-draft/wrapper/methods/wrap.md"><strong>★ wrap()</strong></a><br>The method wraps the <a href="/wrapper-draft/wrap/methods/valueof.md">primitive value</a> of a specified <a href="/wrapper-draft/wrapper/overview.md"><code>Wrapper</code></a> object by its <a href="/wrapper-draft/wrap/accessors/get-opening.md"><code>opening</code></a> and <a href="/wrapper-draft/wrap/accessors/get-closing.md"><code>closing</code></a> chars, or the given <a href="/wrapper-draft/wrapper/methods/wrap.md#opening-customopening"><code>opening</code></a> and <a href="/wrapper-draft/wrapper/methods/wrap.md#closing-customclosing"><code>closing</code></a> chars.</p>                                                                                                                                                                                       |
| <p>public <a href="/wrapper-draft/wrapper/methods/wrapon.md"><strong>★ wrapOn()</strong></a><br>The method wraps the given <a href="/wrapper-draft/wrapper/methods/wrapon.md#text-customtext"><code>text</code></a> with the wrap, the <a href="/wrapper-draft/wrap/accessors/get-opening.md"><code>opening</code></a>, and <a href="/wrapper-draft/wrap/accessors/get-closing.md"><code>closing</code></a> chars of the <a href="/wrapper-draft/wrapper/overview.md"><code>Wrapper</code></a> object.</p>                                                                                                                                                                                                                                                                                                                                                                            |
| <p>public <a href="/wrapper-draft/wrapper/methods/wraptext.md"><strong>★ wrapText()</strong></a><br>The method returns the <a href="/wrapper-draft/wrap/methods/valueof.md">primitive value</a> of the <a href="/wrapper-draft/wrapper/overview.md"><code>Wrapper</code></a> object with <a href="/wrapper-draft/wrap/accessors/get-text.md"><code>text</code></a> wrapped by given <a href="/wrapper-draft/wrapper/methods/wraptext.md#opening-textopening"><code>opening</code></a> and <a href="/wrapper-draft/wrapper/methods/wraptext.md#closing-textclosing"><code>closing</code></a> chars.</p>                                                                                                                                                                                                                                                                                |
