How can I exit from a javascript function?
<p>I have the following:</p>

<pre><code>function refreshGrid(entity) {
    var store = window.localStorage;
    var partitionKey;
    ...
    ...
</code></pre>

<p>I would like to exit from this function if an "if" condition is met. How can I exit? Can I just say break, exit or return?</p>
