title: Javascript: place elements that dont match filter predicate into seperate array
body: <p>This may be a lot simpler than I think, but I've been trying out the .map() and .filter() functions in javascript. What i want to do is create one array using .filter(), and another array for elements that did not match the predicate for the first filter. What I have thus far:</p>
  
  <pre><code>function test(array, predicate){
      var filterTrue = array.filter(predicate);
      var filterFalse = ??
      // rest of method
  }
  </code></pre>
  
  <p>Is there a way to dump the items that do not match the predicate into filterFalse? Probably goes without saying, but the predicate will typically be a function of some kind</p>
  
  <p>EDIT: As an aside, I have tried:</p>
  
  <pre><code>var filterFalse = array.filter(!predicate);
  </code></pre>
  
  <p>But this doesn't seem to work for reasons I'm still trying to understand(Any help on that would also be greatly appreciated)</p>