title: Angular 8 multiple Search Filter (Pipe) not working
body: <p>My Search Filter is not working as I have one Input Field for Search in which I want to Search by Employee Number or Employee Name</p>
  
  <p>My Search Filter Code (Pipe)</p>
  
  <pre><code>   import { Pipe, PipeTransform } from '@angular/core';
  
  @Pipe({
    name: 'searchEmployee'
  })
  export class SearchEmployeePipe implements PipeTransform {
    transform(items: any, filter: any, isAnd: boolean): any {
      if (filter &amp;&amp; Array.isArray(items)) {
        let filterKeys = Object.keys(filter);
        if (isAnd) {
          return items.filter(item =&gt;
            filterKeys.reduce((memo, keyName) =&gt;
              (memo &amp;&amp; new RegExp(filter[keyName], 'gi').test(item[keyName])) || filter[keyName] === "", true));
        } else {
          return items.filter(item =&gt; {
            return filterKeys.some((keyName) =&gt; {
              console.log(new RegExp(filter[keyName], 'gi').test(item[keyName]) || filter[keyName])
              return new RegExp(filter[keyName], 'gi').test(item[keyName]) || filter[keyName] === "";
            });
          });
        }
      } else {
        return items;
      }
    };
  }
  </code></pre>
  
  <p>My html is</p>
  
  <pre><code>&lt;div class="search-employee-input-div"&gt;
      &lt;input type="text" placeholder="Search Employee" class="employee-list-searchbox" [(ngModel)]="employeeSearchQuery" [ngModelOptions]="{standalone: true}" /&gt;
    &lt;/div&gt;
  
  &lt;li formArrayName="Employees" *ngFor="let emp of payrollProcessingList.Employees | searchEmployee: { EmployeeID: employeeSearchQuery, FullName: employeeSearchQuery }: false; let i = index;" class="emp-li-loop"&gt;&lt;/li&gt;
  </code></pre>