title: Nunjucks: Select specific items from array in for loop
body: <p>I need to select specific items from a large array, say [5, 21, 83, 74, 12], and my list looks like this:</p>
  
  <pre><code>{
    "list:" [
      { "title": "Blue" },
      { "title": "Green" },
      { "title": "Yellow" } ...
    ]
  }
  </code></pre>
  
  <p>I was thinking about a <code>for loop</code>, but am not sure of the syntax or filters I should use. How should I modify this code to accomplish the above?</p>
  
  <pre><code>{% for item in list %}
      {% item %}
  {% endfor %}
  </code></pre>