title: Filter pipe Angular - Multiple parameters
body: <p>I have my pipe filter that receives an object defined in the html, only that I have to define the attributes that it will filter. how can I generate my filter without having to pass the parameters of the html?. I would like you to filter all the columns in general.</p>
  
  <pre><code>HTML----
  
  &lt;tr *ngFor="let view of list | filter : { id:searchText, name:searchText, 
     age:searchText }"&gt;
  
     &lt;td&gt;{{view.id}}&lt;/td&gt;
     &lt;td&gt;{{view.name}}&lt;/td&gt;
     &lt;td&gt;{{view.age}}&lt;/td&gt;
  &lt;/tr&gt;
  
  
  
  PIPE---
  
  export class FilterPipe implements PipeTransform {
        transform(value: any, searchText: any): any {
        let filterKeys = Object.keys(searchText);
  
        return value.filter(item =&gt; {
          return filterKeys.some((keyName) =&gt; {
            return new RegExp(searchText[keyName], 'gi').test(item[keyName]);
         });
       });
    }
   }
  </code></pre>