title: Is there a wildcard for === in javascript?
body: <p>I have a function that tests a few things, like this:</p>
  
  <pre><code>function myfunc(user, foo, bar){
     if(user.foo === foo &amp;&amp; user.bar === bar){
      //add some data to an array
     }
  }
  </code></pre>
  
  <p>In some exceptions I don't care what either foo or bar is. How can I make them always true when calling the function. I'm fine with changing the inner workings of the function, as long as it't not to bad for performance.</p>