# off()

<pre class="language-javascript"><code class="lang-javascript">/**
<strong> * @param  {String} event name
</strong> * @param  {Function} callback
 * @return {Void}
 */
off(eventName, callback)
</code></pre>

***

Removes a custom callback from an instance.

***

### Example

<pre class="language-javascript"><code class="lang-javascript"><strong>const fn = (e, selected, unselected) => {
</strong><strong>    counter.value = selected.length;
</strong><strong>};
</strong><strong>
</strong><strong>selectable.on("end", fn);
</strong>
// Later

selectable.off("end", fn);
</code></pre>
