title: Filter values from a json data using node.js
body: <p>Here is the json data</p>
  
  <pre><code>var myArray = [{  
          id: '71',   
          os: 'VM-WIN7-64'
      }, {    
          id: '45',
          mode: 'weekly',
          os: 'VM-WIN7-32'
      }, { 
          id: '37',   
          os: 'VM-WIN7-64',
      }, { 
          id: '67',
          mode: 'daily',
          os: 'VM-WIN7-32-1',
      }];
  </code></pre>
  
  <p>From this how can i filter only <code>mode:daily</code>, <code>mode:weekly</code> as below.I have to remove other values except <code>mode:daily``mode:weekly</code></p>
  
  <pre><code>var myArray = [{    
          id: '45',
          mode: 'weekly',
          os: 'VM-WIN7-32'
      }, { 
          id: '67',
          mode: 'daily',
          os: 'VM-WIN7-32-1',
      }];
  </code></pre>