title: How to create new array of objects from main one
body: <p>I have array of objects and from that I am filtering on the basis of age and want the new array of object to not to have age</p>
  
  <p><strong>Like this</strong></p>
  
  <p>I have this array of oject</p>
  
  <pre><code>    let arrayObj =[
    { name : "Joe", age:20, email: "joe@hotmail.com"},
    { name : "Mike", age:50, email: "mike@hotmail.com"},
    { name : "Joe", age:45, email: "mike@hotmail.com"}
  ]
  </code></pre>
  
  <p>now using <code>filter</code> I am filtering the array with age like below</p>
  
  <pre><code>    let newArray = arrayObj.filter((el)=&gt;{
    if(el.age&gt;20){
      return el.name,el.email
    }
  })
  console.log(newArray)
  </code></pre>
  
  <p>the console is always showing every thing like this </p>
  
  <pre><code>[{
    age: 50,
    email: "mike@hotmail.com",
    name: "Mike"
  },{
    age: 45,
    email: "mike@hotmail.com",
    name: "Joe"
  }]
  </code></pre>
  
  <p>But I want </p>
  
  <pre><code>[{
        email: "mike@hotmail.com",
        name: "Mike"
      },{
  
        email: "mike@hotmail.com",
        name: "Joe"
      }]
  </code></pre>
  
  <p>I don't know what to do next to achieve this</p>