const text = '/admin/paper18'
I want to convert this text, which is I need to remove second '/' and rest of it. the result has to be like this:
const text = '/admin'
What do I have to do, how can I convert it?
const text = '/admin/paper18'
I want to convert this text, which is I need to remove second '/' and rest of it. the result has to be like this:
const text = '/admin'
What do I have to do, how can I convert it?