Created
September 8, 2018 03:39
-
-
Save MatthewStanciu/3fec1a92194f6c07657dae84d8d225ff to your computer and use it in GitHub Desktop.
get Spotify ID from url
This file contains 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
function getIDfromUrl(url) { | |
var split1 = url.split('/'); | |
var split2 = split1[4].split('?'); | |
return split2[0]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment