title: javascript how to filter array for multiple condition
body: <p>This is the filter:</p>
  <pre><code>var filter = {
    address: ['England'],
    name: ['Mark', 'Tom'] // Mark or Tom in this case
  };
  </code></pre>
  <pre><code>var users = [{
      name: 'John',
      email: 'johnson@mail.com',
      age: 25,
      address: 'USA'
    },
    {
      name: 'Tom',
      email: 'tom@mail.com',
      age: 35,
      address: 'England'
    },
    {
      name: 'Mark',
      email: 'mark@mail.com',
      age: 28,
      address: 'England'
    }
  ];
  </code></pre>
  <p>The filtered result should be</p>
  <pre><code>  {
      name: 'Tom',
      email: 'tom@mail.com',
      age: 35,
      address: 'England'
    },
    {
      name: 'Mark',
      email: 'mark@mail.com',
      age: 28,
      address: 'England'
    }
  </code></pre>