title: get the second to last item of an array?
body: <p>How can I get the last second item in an array?</p>
  
  <p>For instance,</p>
  
  <pre><code>var fragment = '/news/article-1/'
  var array_fragment = fragment.split('/');
  var pg_url = $(array_fragment).last()[0];
  </code></pre>
  
  <p>This returns an empty value. But I want to get <code>article-1</code></p>
  
  <p>Thanks.</p>