How to find out if "navbar-toggle" button is collapsed or hidden with Javascript
<p>Is there a way to find out, with JS, if the toggle button menu is collapsed or hidden.</p>

<p>Does <strong>class="navbar-toggle"</strong> <strong>or data-toggle="collapse"</strong> have a parameter which indicates this state?</p>

<p>I know the events that are called when the ".collape" is shown or hidden:</p>

<p><code>$('.navbar-collapse').on('shown.bs.collapse', function () {
//called when dropdown menu is shown
});</code></p>

<p>Furthermore, I know the methods that shows or hides the collapse like this:</p>

<pre><code>$('.navbar-collapse').collapse('hide'); 
</code></pre>

<p>But I can´t find any information on how to get the current status of .collapse, telling me if it´s hidden or shown.</p>