title: Change property name of objects
body: <p>An array of about 5 or more javascript objects in this format <code>[{'a':'man', 'age':'35'},{'b':'woman', 'age':'30'}]</code> needs to be converted to <code>[{gender:'man','age':'35'},{gender:'woman','age':'30'}]</code>.  </p>
  
  <p>What is an efficient way to do it?</p>
  
  <p><strong>edit</strong><br>
  Also the input array may be like this where the keys are switched around:
  <code>[{'a':'man', 'age':'35'},{'age':'30', 'b':'woman'}]</code> where a, b, ... could be anything and the objects in the array could up to 10 objects. </p>