title: javascript variable = x or y possible?
body: <p>I'm using the following javascript to get URL parameters...</p>
  
  <pre><code>function getUrlParams() {
    var params = {};
    window.location.search.replace(/[?&amp;]+([^=&amp;]+)=([^&amp;]*)/gi, function(str,key,value) {
      params[key] = value;
    });
    return params;
  }
  var params = getUrlParams();
  var urlvars = (params.email);
  </code></pre>
  
  <p>The URL has <code>?email=email@domain.com&amp;fbemail=email@domain.com</code></p>
  
  <p>In most cases one of those values is blank, otherwise they're the same. So I'm trying to make   <code>urlvars = (params.email) or (params.fbemail)</code></p>
  
  <p>What's the best way to go about this?</p>