What would be the cleanest way of doing this that would work in both IE and firefox.
My string looks like this: sometext-20202
Now the \'sometext\' and the
A solution I prefer would be:
const str = 'sometext-20202'; const slug = str.split('-').pop();
Where slug would be your result
slug