# Methods

## Static

### Public

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

## Instance

### Public

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