How to break out from foreach loop in javascript
<p>I am newbie in Javascrript. I have a variable having following details:</p>

<pre><code>var result = false;
[{"a": "1","b": null},{"a": "2","b": 5}].forEach(function(call){
    console.log(call);
    var a = call['a'];
    var b = call['b'];
    if(a == null || b == null){
        result = false
        break;
    }
});
</code></pre>

<p>I want to break the loop if there is NULL value for a key. How can I do it?</p>