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)