title: Pythonic way of accessing properties in Javascript
body: <p>In Python, there is a way to iterate over an array, filter some of the elements and then pop only particular properties of the object. It works in such a way:</p>
  
  <pre class="lang-py prettyprint-override"><code>elements = [{'name':'1', 'id':1},{'name':'2', 'id':2},{'name':'3', 'id':3}]
  filtered_elements = [x['name'] for x in elements if x['id'] == 1]
  </code></pre>
  
  <p>Is there any elegant way to do such a thing in JS? </p>