I am gettin warning "value is returned not all execution path" for jQuery.grep in javascript
<p>I am using following line of code</p>

<pre><code>var selectedMedId = jQuery.grep(privateVariables.medIdData, function (n) {
    if (n.DescriptionWithCode.toString().toUpperCase() === description.toString().toUpperCase()) {
        return n;
    }
});
</code></pre>

<p>I tried following also</p>

<pre><code> var selectedMedId = jQuery.grep(privateVariables.medIdData, function (n) {
     return n.DescriptionWithCode.toString().toUpperCase() === description.toString().toUpperCase();
 }
 });
</code></pre>

<p>And I want get rid of this warning.</p>
