title: Object Filter In Angular/Typescript
body: <p>I have the following object which i'm displaying in table format 'Key' and 'Value' headers.</p>
  
  <pre><code> {
          "ab": "a val",
          "bc": "baa",
          "kk": "try",
          "dd": "again"
   }
  </code></pre>
  
  <p>I need to filter as soon as I enter some text in the input field.</p>
  
  <p>So if I enter <strong>'a'</strong> in the input field then it should return/display in table the following as it has matching records with <strong>'a'</strong> either in key or value - </p>
  
  <pre><code>{
              "ab": "a val",
              "bc": "baa",
              "dd": "again"
  }
  </code></pre>
  
  <p>I'm using ngFor in html - </p>
  
  <p>*ngFor="let item of obj | keyvalue"</p>