title: Adding an array to a hashtable
body: <p>I have an array full of values, myArray[]</p>
  
  <p>I'm trying place this array in a hash table to pass over the socket from my node.js server. </p>
  
  <p>I want the array in the hash table to contain all the same information as myArray.</p>
  
  <pre><code>var item = [
      {    hashArray: []     }
  ];
  
  for (var i = 0; i &lt; myArray.length; i++) {
      item.hashArray.push(myArray[i]);
  }
  </code></pre>
  
  <p>I receive the error that I can't call push of undefined.</p>
  
  <p>Thanks for any help!</p>
  
  <p>EDIT: Thanks very much everyone, I see what I was doing wrong!</p>