How to get a value array from an object array : <p>How can I access all values with the same key in an object array?
Given the following data:</p>

<pre><code>data = [{first_name: 'Peter', last_name: 'Smith', age: 45}, 
        {first_name: 'John', last_name: 'Miller', age: 21}];
</code></pre>

<p>Is there a easy way to get an array containing all first names, like <code>first_names = ['Peter', 'John']</code>?</p>

<p>I guess I'm asking a very frequently asked question, but I couldn't find a solution anywhere to answer it.</p>
