JS lodash [1, 2] => {1: 'test', 2: 'test'} : <p>There is an array:</p>

<pre><code>var array = [{test: 1}, {test: 2}, {test: 3}]
</code></pre>

<p>I need to get:</p>

<pre><code>{1: 'random_value', 2: 'random_value', 3: 'random_value'}
</code></pre>

<p>I'm doing:</p>

<pre><code>var values_test = _.map(array, 'test');
</code></pre>

<p>What to do next?</p>
