search in Angular 2 with First Name, Last Name and Email
<h1>Detail</h1>

<p>I am trying to implement search pipe through which user can search with email/ firstname/ lastname but right now it iss perfectly fine with email single search item. I want to search same text enter in input with email first name and last name.</p>

<h1>Image</h1>

<p><a href="https://i.stack.imgur.com/pnteM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pnteM.png" alt="enter image description here"></a></p>

<h1>Search Pipe</h1>

<pre><code>import {Pipe} from '@angular/core';


@Pipe({
    name: "search"
})

export class SearchPipe {

    transform(value, term) {
        console.log(term + ' ' + value);
        if (term == null) {
            return null;
        }
        return value.filter((item) =&gt; item.Email.includes(term));
    }
}
</code></pre>

<h2>Response</h2>

<pre><code>{
    "Id":1,
    "ApimId":"1",
    "FirstName":"Super",
    "LastName":"Admin","
    "Email":"ahmed@gmail.com"   
}
</code></pre>