title: how to convert observable data to lowercase in angular 2
body: <h1>Detail</h1>
  
  <p>I want to convert observable data in to lowerCase below is my code. I want to convert Value to lowercase </p>
  
  <h1>Code</h1>
  
  <pre><code>import {Pipe} from '@angular/core';
  
  
  @Pipe({
      name: "search"
  })
  
  export class SearchPipe {
  
      transform(value, term) {
          console.log(term.toLowerCase());
          if (term == null) {
              return null;
          }
          return value.filter((item) =&gt; {
              return item.Email.includes(term) || item.FirstName.includes(term) || item.LastName.includes(term);
          });
      }
  
  }
  </code></pre>
  
  <h1>image</h1>
  
  <p><a href="https://i.stack.imgur.com/phUpQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/phUpQ.png" alt="enter image description here"></a></p>