title: How to add values to object as a nested array
body: <p>I am creating a function that takes in an array of nested objects as the argument.  I want the output to also be an object, and the values to be setup as a nested array.  For example:</p>
  <pre><code>let input = [
   { dog: 'lab'},
   { dog: 'husky'}
  ]
  
  function someFunc (arrOfNestedObj) {
   // insert code here
  }
  </code></pre>
  <p>I want my output to look like this:</p>
  <pre><code>output = {
   dog: ['lab', 'husky']
  }
  </code></pre>
  <p>With the problem that I'm working on, my output is displaying the values as strings, and I cannot figure out how to convert to an array OR input the values as an array as I write the function.</p>