Angular 2 Search Pipe filter objects with array property
<p>I have Angular 2 Search Pipe that filters against an array of Project[]. It works for every property except for one containing an array of strings.</p>

<p><strong>Here is a sample of data model</strong></p>

<pre><code>[{
    'Id': 2,
    'Title': 'Abc',        
    'Amount': '200',
    'Outcome': ['Outcome 2', 'Outcome 22', 'Outcome 222', 'Outcome 2222']
},
{
    'Id': 3,
    'Title': 'Abc',        
    'Amount': '300',
    'Outcome': ['Outcome 3', 'Outcome 333', 'Outcome 3333', 'Outcome 33333']
}]
</code></pre>

<p><strong>Here is the SearchPipe</strong> - </p>

<blockquote>
  <p>not searching against Outcome array</p>
</blockquote>

<pre><code>export class SearchPipe implements PipeTransform {
transform(value, args?): Project[] {
    let searchText = new RegExp(args, 'ig');
    if (value) {
        return value.filter(project =&gt; {
            if (project) {
                return project.Title.search(searchText) !== -1
                    || project.Focus.search(searchText) !== -1
                    || project.Outcome.forEach(outcome =&gt; {
                        if (outcome.search(searchText) !== -1) {
                            return true;
                        }
                        else {
                            return false;
                        }
                    });
            }
        });
    }
}
</code></pre>

<p>}</p>

<p>Any Help would be much appreciated - Thank you!</p>