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)