Some users type https://google.com/ and some users type https://google.com
How to check If user type with slash or not? If user type with a slash How to remove slash?
var str = 'https://google.com/';
if (str.endsWith('/')) str = str.substring(0, str.length - 1);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With