title: Shift js string one character
body: <p>In PHP, it's pretty simple, I'd assume, <code>array_shift($string)</code>?</p>
  
  <p>If not, I'm sure there's some equally simple solution :)</p>
  
  <p>However, is there any way to achieve the same thing in JavaScript?</p>
  
  <p>My specific example is the pulling of <code>window.location.hash</code> from the address bar in order to dynamically load a specific AJAX page. If the hash was "2", i.e. <a href="http://foo.bar.com#2" rel="nofollow noreferrer">http://foo.bar.com#2</a>...</p>
  
  <pre><code>var hash = window.location.hash; // hash would be "#2"
  </code></pre>
  
  <p>I'd ideally like to take the <code>#</code> off, so a simple <code>2</code> gets fed into the function.</p>
  
  <p>Thanks!</p>