# Instance

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p><a href="instance/getclosing"><strong>getClosing()</strong></a><br>Gets the <a href="../../../getting-started/basic-concepts#closing">closing</a> chars of the wrap by returning the <a href="../../properties#closing-closing"><code>#closing</code></a> property of a specified object.</p>                                                                                                                                                                                      |
| <p><a href="instance/getopening"><strong>getOpening()</strong></a><br>Gets the <a href="../../../getting-started/basic-concepts#opening">opening</a> chars of the wrap by returning the <a href="../../properties#opening-opening"><code>#opening</code></a> property of a specified object.</p>                                                                                                                                                                                      |
| <p><a href="instance/gettext"><strong>getText()</strong></a><br>Gets the text of the wrap by returning the <a href="../properties/text"><code>#text</code></a> property of a specified object, without the <a href="../accessors/opening">opening</a> and <a href="../accessors/closing">closing</a> chars of the <a href=".."><code>Wrap</code></a>.</p>                                                                                                                             |
| <p><a href="instance/hasclosing"><strong>hasClosing()</strong></a><br>Checks whether the <a href="instance/valueof">primitive value</a> of a specified object has the <a href="../accessors/closing"><code>closing</code></a> chars or given <a href="hasclosing#closing-string"><code>closing</code></a> chars.</p>                                                                                                                                                                  |
| <p><a href="instance/hasopening"><strong>hasOpening()</strong></a><br>Checks whether the <a href="instance/valueof">primitive value</a> of a specified object has the <a href="../accessors/opening"><code>opening</code></a> chars or given <a href="hasopening#opening-string"><code>opening</code></a> chars.</p>                                                                                                                                                                  |
| <p><a href="instance/hastext"><strong>hasText()</strong></a><br>The method checks whether the <a href="../accessors/text"><code>text</code></a> of a specified <a href=".."><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="hastext#text-string"><code>text</code></a>.</p>     |
| <p><a href="instance/iswrapped"><strong>isWrapped()</strong></a><br>The method checks whether the <a href="instance/valueof">primitive value</a> of the specified object is wrapped by the <a href="../accessors/opening">opening</a> and <a href="../accessors/closing">closing</a> chars of an instance or given <a href="iswrapped#opening-string-this.-opening"><code>opening</code></a> and <a href="iswrapped#closing-string-this.-closing"><code>closing</code></a> chars.</p> |
| <p><a href="instance/replaceclosing"><strong>★ replaceClosing()</strong></a><br>Returns the <a href="instance/valueof">primitive value</a> with replaced <a href="../accessors/closing"><code>closing</code></a> chars.</p>                                                                                                                                                                                                                                                           |
| <p><a href="instance/replaceopening"><strong>★ replaceOpening()</strong></a><br>Returns the <a href="instance/valueof">primitive value</a> with replaced <a href="../accessors/opening"><code>opening</code></a> chars.</p>                                                                                                                                                                                                                                                           |
| <p><a href="instance/replacetext"><strong>★ replaceText()</strong></a><br>Returns the <a href="instance/valueof">primitive value</a> with replaced <a href="../accessors/text"><code>text</code></a>.</p>                                                                                                                                                                                                                                                                             |
| <p><a href="instance/tostring"><strong>toString()</strong></a><br>Gets the <a href="../../../getting-started/basic-concepts#wrap">wrap</a>, the <a href="instance/valueof">primitive value</a> of a specified <a href=".."><code>Wrap</code></a> object.</p>                                                                                                                                                                                                                          |
| <p><a href="instance/valueof"><strong>valueOf()</strong></a><br>Returns the <a href="../../../getting-started/basic-concepts#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=".."><code>Wrap</code></a> object.</p>                                                                                                                                              |
