title: Angular2 Typescript Trim File Extensions from array
body: <p>I was wondering if it is possible to trim file extensions from an array on Angular 2 TS.</p>
  
  <p>I know it is easy to trim within JS, but wondered how easy it is to do within TS.</p>
  
  <p>Lets same i have this data returned:</p>
  
  <pre><code>[ '1111111.pdf', '1111112.pdf' ]
  </code></pre>
  
  <p>How would I approach to trim the '.pdf' from the array?</p>
  
  <p>I know in js you can use <code>String.prototype.trim.apply</code> but yano... any suggestions would be apprecaited</p>