what's a proper way to check for null/empty string in js before including to params?
<p>I am building a querystring and want to exclude keys if vals are empty, what's a proper way?</p>

<pre><code> setQueryString: function () {
    var keyword = $('#keyword').val();
    //how to exclude it if keyword is empty?
    var params = {           
        "keyword": $.trim(keyword)
    };

    return params;
}
</code></pre>

<p>take into account, that I will have 20+ inputs like keyword..trying to avoid lots of IF statements</p>
