title: javascript dynamic filters with OR results
body: <p>I have an array of objects with multiple fields, i.e.</p>
  
  <pre><code>Person
  {
      name: string;
      age: number;
      addressLines: string[];
  }[];
  </code></pre>
  
  <p>I also have dynamic search parameters, i.e.</p>
  
  <pre><code>parameters: ['mary', 'oregon'] //may be a longer/shorter array
  </code></pre>
  
  <p>Assuming my input is:</p>
  
  <pre><code>[
      { name: 'john mark', age: '29', addressLines: ['566 long street', 'oregon']},
      { name: 'williams', age: '30', addressLines: ['oregon']},
      { name: 'moore mary', age: '40', addressLines: ['street 61', 'salt lake']}
  ]
  </code></pre>
  
  <p>My output should be:</p>
  
  <pre><code>[
      { name: 'john mark', age: '29', addressLines: ['566 long street', 'oregon']}, // oregon
      { name: 'moore mary', age: '40', addressLines: ['street 61', 'salt lake']} //mary
  ]
  </code></pre>
  
  <p>How can I implement this using the filter method? thanks in advance.</p>