title: Ramda - how to get nested array values
body: <p>I am trying to get values from nested arrays using Ramda. I have multiple groups like in the example below. I need to get all children from all <code>sections</code> and all <code>childrenWithoutSections</code> in one array of strings.</p>
  <pre class="lang-js prettyprint-override"><code>const groups = [
     {
        &quot;id&quot;:&quot;10&quot;,
        &quot;sections&quot;:[
           {
              &quot;id&quot;:&quot;1&quot;,
              &quot;children&quot;:[&quot;10&quot;, &quot;11&quot;]
           },
           {
              &quot;id&quot;:&quot;2&quot;,
              &quot;children&quot;:[&quot;12&quot;]
           }
        ],
        &quot;childrenWithoutSections&quot;:[&quot;1&quot;, &quot;2&quot;]
     },
     {
        &quot;id&quot;:&quot;11&quot;,
        &quot;sections&quot;:[
           {
              &quot;id&quot;:&quot;3&quot;,
              &quot;children&quot;:[&quot;13&quot;, &quot;14&quot;]
           },
           {
              &quot;id&quot;:&quot;4&quot;,
              &quot;children&quot;:[&quot;15&quot;]
           }
        ],
        &quot;childrenWithoutSections&quot;:[&quot;3&quot;, &quot;4&quot;]
     }
  ]
  </code></pre>
  <p>I started with something like this:</p>
  <pre class="lang-js prettyprint-override"><code>R.pipe(
    R.pluck(['childrenWithoutSections']),
    R.flatten
  )(groups)
  </code></pre>
  <p>And as a result, I got all the children from one required key but I have no idea how to get nested values from <code>sections/children</code>?</p>