title: Pass multiple values to pipe in Angular 6
body: <p>I need to create a search form in Angular 6 with pipe and must pass multiple arguments to pipe . </p>
  
  <p><code>nameSearch</code> , <code>emailSearch</code> ,<code>roleSeach</code> , <code>accountSearch</code></p>
  
  <pre><code> &lt;tr *ngFor="let user of data | searchuser: nameSearch" &gt;&lt;/tr&gt;
  </code></pre>
  
  <p>and this my pipe : </p>
  
  <pre><code>@Pipe({
    name: 'searchuser'
  })
  export class SearchuserPipe implements PipeTransform {
  
    transform(users: IUser[], nameSearch: string): IUser[] {
      if(!users) return [];
      if(!nameSearch) return users;
  
      nameSearch=nameSearch.toLocaleLowerCase();
      return users.filter(item=&gt;
        {
           return item.desplayName.toLocaleLowerCase().includes(nameSearch)
        });
    }
  </code></pre>
  
  <p>please guide me how create pipe search with multi argument .</p>
  
  <p><strong>Edit :</strong></p>
  
  <pre><code>  transform(users: IUser[], nameSearch: string ,eamilSearch:string,roleSearch:string): IUser[] {
  if(!users) return [];
  if(!nameSearch) return users;
  if(!eamilSearch) return users;
  if(!roleSearch) return users;
  
  nameSearch=nameSearch.toLocaleLowerCase();
  return users.filter(item=&gt;
    {
        item.desplayName.toLocaleLowerCase().includes(nameSearch),
        item.email.toLocaleLowerCase().includes(eamilSearch),
        item.description.toLocaleLowerCase().includes(roleSearch)          
    });
  }
  </code></pre>