> For the complete documentation index, see [llms.txt](https://docs.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://docs.angular-package.dev/wrapper/wrap/methods.md).

# Methods

## Static

### Public

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p><a href="/pages/KqCEKG6pfYooFvLJylRi"><strong>hasClosing()</strong></a><br>Checks whether the <a href="/pages/KqCEKG6pfYooFvLJylRi#text-string"><code>text</code></a> has given <a href="/pages/KqCEKG6pfYooFvLJylRi#closing-string"><code>closing</code></a> chars at the end.</p>                                                                                                                                                                              |
| <p><a href="/pages/5ZNZc77RcMzT5lXjVIQN"><strong>hasOpening()</strong></a><br>Checks whether the <a href="/pages/5ZNZc77RcMzT5lXjVIQN#text-string"><code>text</code></a> has given <a href="/pages/5ZNZc77RcMzT5lXjVIQN#opening-string"><code>opening</code></a> chars at the beginning.</p>                                                                                                                                                                        |
| <p><a href="/pages/tMC6jpWbwyHbTibV7FVb"><strong>isWrap()</strong></a><br>The method checks whether the <a href="/pages/tMC6jpWbwyHbTibV7FVb#value-any"><code>value</code></a> of any type is the <a href="/pages/ynTr7YIdKgv6qw68JPND"><code>Wrap</code></a> instance of any or given <a href="/pages/tMC6jpWbwyHbTibV7FVb#opening-opening"><code>opening</code></a> and <a href="/pages/tMC6jpWbwyHbTibV7FVb#closing-closing"><code>closing</code></a> chars.</p> |

## Instance

### Public

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p><a href="/pages/DO4ArQjbDGnDv1Ta74Yy"><strong>getClosing()</strong></a><br>Gets the <a href="/pages/6Nle1uMltWSb2uh6hgTQ#closing">closing</a> chars of the wrap by returning the <a href="/pages/GWnWPzSqNz97LBWzdDog#closing-closing"><code>#closing</code></a> property of a specified object.</p>                                                                                                                                                                                                                                                     |
| <p><a href="/pages/sMY677pZekEiwLxaWOT8"><strong>getOpening()</strong></a><br>Gets the <a href="/pages/6Nle1uMltWSb2uh6hgTQ#opening">opening</a> chars of the wrap by returning the <a href="/pages/GWnWPzSqNz97LBWzdDog#opening-opening"><code>#opening</code></a> property of a specified object.</p>                                                                                                                                                                                                                                                     |
| <p><a href="/pages/LoemdYYF2nsxY7XYurnU"><strong>getText()</strong></a><br>Gets the text of the wrap by returning the <a href="/pages/oDUSz67aGEA6VGbBULlE"><code>#text</code></a> property of a specified object, without the <a href="/pages/FVgRIdWWBG2tK8BmBSXg">opening</a> and <a href="/pages/y486cVc4dkfJSdWG82YB">closing</a> chars of the <a href="/pages/vlRmumtdkPHxEUrU51WO"><code>Wrap</code></a>.</p>                                                                                                                                        |
| <p><a href="/pages/SwVbIKxEQyWEUHmJcqB7"><strong>hasClosing()</strong></a><br>Checks whether the <a href="/pages/K32cdMdrpsCcE0oMk8Ek">primitive value</a> of a specified object has the <a href="/pages/y486cVc4dkfJSdWG82YB"><code>closing</code></a> chars or given <a href="/pages/SwVbIKxEQyWEUHmJcqB7#closing-string"><code>closing</code></a> chars.</p>                                                                                                                                                                                             |
| <p><a href="/pages/AXIumFXCrM0Gvjvp6Ygz"><strong>hasOpening()</strong></a><br>Checks whether the <a href="/pages/K32cdMdrpsCcE0oMk8Ek">primitive value</a> of a specified object has the <a href="/pages/FVgRIdWWBG2tK8BmBSXg"><code>opening</code></a> chars or given <a href="/pages/AXIumFXCrM0Gvjvp6Ygz#opening-string"><code>opening</code></a> chars.</p>                                                                                                                                                                                             |
| <p><a href="/pages/EPu74cDYJe28Jt8YJlfl"><strong>hasText()</strong></a><br>The method checks whether the <a href="/pages/dVcsuee2Tiyg6m9Naczl"><code>text</code></a> of a specified <a href="/pages/ynTr7YIdKgv6qw68JPND"><code>Wrap</code></a> object is defined, which means it's a <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String"><code>string</code></a> of at least one char and optionally equal to the given <a href="/pages/EPu74cDYJe28Jt8YJlfl#text-string"><code>text</code></a>.</p>         |
| <p><a href="/pages/VDTORK00NPJgmbN7aELv"><strong>isWrapped()</strong></a><br>The method checks whether the <a href="/pages/K32cdMdrpsCcE0oMk8Ek">primitive value</a> of the specified object is wrapped by the <a href="/pages/FVgRIdWWBG2tK8BmBSXg">opening</a> and <a href="/pages/y486cVc4dkfJSdWG82YB">closing</a> chars of an instance or given <a href="/pages/VDTORK00NPJgmbN7aELv#opening-string-this.-opening"><code>opening</code></a> and <a href="/pages/VDTORK00NPJgmbN7aELv#closing-string-this.-closing"><code>closing</code></a> chars.</p> |
| <p><a href="/pages/VqVru4aHNREMRPPI7C7x"><strong>★ replaceClosing()</strong></a><br>Returns the <a href="/pages/K32cdMdrpsCcE0oMk8Ek">primitive value</a> with replaced <a href="/pages/y486cVc4dkfJSdWG82YB"><code>closing</code></a> chars.</p>                                                                                                                                                                                                                                                                                                           |
| <p><a href="/pages/zKADrcHiPoJayJd5LR4Q"><strong>★ replaceOpening()</strong></a><br>Returns the <a href="/pages/K32cdMdrpsCcE0oMk8Ek">primitive value</a> with replaced <a href="/pages/FVgRIdWWBG2tK8BmBSXg"><code>opening</code></a> chars.</p>                                                                                                                                                                                                                                                                                                           |
| <p><a href="/pages/2khbXB2F6Yiq7r6I68nu"><strong>★ replaceText()</strong></a><br>Returns the <a href="/pages/K32cdMdrpsCcE0oMk8Ek">primitive value</a> with replaced <a href="/pages/dVcsuee2Tiyg6m9Naczl"><code>text</code></a>.</p>                                                                                                                                                                                                                                                                                                                       |
| <p><a href="/pages/6nAq7tnHWOAKno0FtVIY"><strong>toString()</strong></a><br>Gets the <a href="/pages/6Nle1uMltWSb2uh6hgTQ#wrap">wrap</a>, the <a href="/pages/K32cdMdrpsCcE0oMk8Ek">primitive value</a> of a specified <a href="/pages/vlRmumtdkPHxEUrU51WO"><code>Wrap</code></a> object.</p>                                                                                                                                                                                                                                                              |
| <p><a href="/pages/K32cdMdrpsCcE0oMk8Ek"><strong>valueOf()</strong></a><br>Returns the <a href="/pages/6Nle1uMltWSb2uh6hgTQ#wrap">wrap</a>, <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/valueOf">primitive value</a> of a specified <a href="/pages/ynTr7YIdKgv6qw68JPND"><code>Wrap</code></a> object.</p>                                                                                                                                                                                            |
