title: How to get the first element of an array?
body: <p>How do you get the first element from an array like this:</p>
  
  <pre><code>var ary = ['first', 'second', 'third', 'fourth', 'fifth'];
  </code></pre>
  
  <p>I tried this:</p>
  
  <pre><code>alert($(ary).first());
  </code></pre>
  
  <p>But it would return <code>[object Object]</code>. So I need to get the first element from the array which should be the element <code>'first'</code>.</p>