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