Last active
March 15, 2021 17:22
-
-
Save cyberdev/ccd55534996a6f41700aaf94ba3d9de4 to your computer and use it in GitHub Desktop.
Get last split string
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
//to get id from item_12 | |
var id = className.split('_').pop(); //output 12 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment