I am working with a string that I would like to split and only return the remaining values.
The string looks as follows:
let str = "service.annual.returns"
I want to remove the "service" part of the string and only return "annual.returns".
I believe I can accomplish this with the .split() method, but not sure how the expression would look to get the desired result.
Apologies for being vague on the question. I indeed want to remove the first index, as the convention of the system I'm working on is to have a 'TYPE' appended to the name of a given element. For example, "Service" is just one such type, there are other instances such as "Tax": tax.annual.return, tax.zero.rated or another example is 'Media": media.youtube...this is important for the backend, but when showing the data to the frontend, I do not have to show the appended 'TYPE' formatting....that is only for the backend. I hope this makes it a bit clearer.