title: How to combine two array objects if a key value matches in both arrays
body: <p>I am trying to combine two array objects with different array objects based on flight key.<br>
  If the value is matched in <code>a2</code>, I want to merge it with <code>a1</code> and create new array.<br>
  All data in <code>a1</code> must be there and matched flight details must be added from <code>a2</code> to <code>a1</code>.<br>
  <br>
  Please help me to solve this.</p>
  
  <pre><code>a1 = [{'flight':'AF1223','oring':'CDF', 'Dest':'HNG'},{'flight':'XG23','oring':'HYD', 'Dest':'MMZ'},{'flight':'PK145','oring':'XYZ', 'Dest':'PEK'}]
  
  a2 = [{'price':230,'avail':20,'flight':'AF1223'}, {'price':430,'avail':30,'flight':'DF43'},{'price':430,'avail':30,'flight':'XG23'} ]
  
  combine array = [{'flight':'AF1223','oring':'CDF', 'Dest':'HNG','price':230,'avail':20},{'flight':'XG23','oring':'HYD', 'Dest':'MMZ'},{'flight':'PK145','oring':'XYZ', 'Dest':'PEK','price':430,'avail':30,}]
  </code></pre>