How to convert an Array to Array of Object in Javascript : <p>I want to convert an Array like:</p>

<pre><code>[ 'John', 'Jane' ]
</code></pre>

<p>into an array of object pairs like this:</p>

<pre><code> [{'name': 'John'}, {'name':'Jane'}]
</code></pre>

<p>Please help me to do so..</p>
