javascript convert <string, string[]> to <string, string>
<p>I have a javascript object with key/value pairs where the value is an array of strings:</p>

<pre><code>var errors = {
    "Message": ["Error #1", "Error #2"],
    "Email": ["Error #3", "Error #4"]
};
</code></pre>

<p>I would like to convert this to a key/value pair with the first element of each array so that it is a  instead of :</p>

<pre><code>var firstErrorOnly = {
    "Message": "Error #1",
    "Email": "Error #3"
};
</code></pre>

<p>I tried doing this using <code>jQuery.map</code> but I was not getting the results I wanted. How can I accomplish this?</p>
