Created
November 5, 2019 16:43
-
-
Save seantunwin/f8ac13ee41523fe413f45aa837faa224 to your computer and use it in GitHub Desktop.
JavaScript: Get string after last slash
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
str.substring(str.lastIndexOf('/') + 1); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment