title: Array.shift() and modify value in a single line?
body: <p>This Javascript code removes the first file name from a file list and then removes its extension:</p>
  
  <pre><code>var fileNoExt = filelist.shift();
  fileNoExt = fileNoExt.substr(0, fileNoExt.lastIndexOf('.'));
  </code></pre>
  
  <p>I'm curious - is it possible to turn this code into a one-liner?</p>