DEV Community

Lost Semicolon πŸ’»πŸ–±
Lost Semicolon πŸ’»πŸ–±

Posted on

Get last part of the url

In js, you can use url.substring(url.lastIndexOf('/') + 1)

Top comments (0)