I have a filter on rows with names and email addresses. I want the filter to show results with a match regardless of the capitals. 
eg:
search for Admin
should show admin@email.com and an Admin username.

```
@Pipe({
  name: 'dataFilter'
})
export class DataFilterPipe implements PipeTransform {

  transform(array: any[], query: string): any {
    if (query) {
      return _.filter(array, row => row.email.toLowerCase().indexOf(query) > -1 || row.name.toLowerCase().indexOf(query) > -1)
    }
    return array;
  }
}

```

I added the toLowerCase() - that solved the filter to show small letter searches, but if the user searches for Admin now, it will not find the email, just the username of: Admin.