title: Store array in jQuery cookie
body: <p>I am storing array in cookie through jQuery cookie plugin but each time I get it from cookie, it returns empty</p>
  
  <p>I define array as:</p>
  
  <pre><code>var myArray = [];
  myArray[ 0 ] = "hello";
  myArray[ 1 ] = "world";
  </code></pre>
  
  <p>Set it in cookie</p>
  
  <pre><code>$.cookie('cookie-array', myArray);
  </code></pre>
  
  <p>But getting this cookie and printing, prints empty string</p>
  
  <pre><code>console.log($.cookie('cookie-array'));
  </code></pre>
  
  <p>EDIT:
  Arrays define in other questions are object arrays no like this array I mentioned here. Also I dont want to user JSON library.</p>