title: How to extract the property values of a object into an array and make elements in the array different？
body: <p>i got this array</p>
  
  <pre><code>var data = [
      {F: 'a', T: 'z', V:1},
      {F: 'b', T: 'z', V:2},
      {F: 'c', T: 'z', V:3}
  ]
  </code></pre>
  
  <p>and i want got this array below 
  I used method forEach </p>
  
  <pre><code> var nodes = [];
   data.forEach(function(element) {
     nodes.push({name:element.F})
     nodes.push({name:element.T}            
   })
  </code></pre>
  
  <p>but got a repetitive element{name:'z'} in array but  don't want the repetitive element ,I want the array below</p>
  
  <pre><code>[
      {name:'a'},
      {name:'b'},
      {name:'c'},
      {name:'z'},
  ]
  </code></pre>