title: Merge objects in array based on property
body: <p>I have an array like so which i am trying to merge so any object that has the name property the same will after the merge contain a list of merged objects</p>
  
  <pre><code>var array = [ 
      {name: "One",
       myList: [Object1, Object2]
      },
      {name: "Two",
       myList: [Object3, Object4]
       },
       {name: "One",
       myList: [Object5, Object6]
       }
  ]
  </code></pre>
  
  <p>How do i merge the two 'One' objects so i get something like </p>
  
  <pre><code>var array = [ 
      {name: "One",
       myList: [Object1, Object2, Object5, Object6]
      },
      {name: "Two",
       myList: [Object3, Object4]
       }
  ]
  </code></pre>
  
  <p>looking to do this in vanilla javascript</p>