Answers for "get last part of pathname javascript"

0

how to get last path from url in javascript

const lastSegmentOfUrl = this.href.substring(this.href.lastIndexOf('/') + 1);
Posted by: Guest on July-11-2021
0

get last element path

>>> os.path.basename(os.path.normpath('/folderA/folderB/folderC/folderD/'))
'folderD'
Posted by: Guest on November-24-2020

Code answers related to "get last part of pathname javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language