Trim Last Slash - Javascript

Trim Last Slash - Javascript

code snippet

javascript
function trimLastSlash(source)
{     
    return source.replace(/\/$/, "");
}

"What we think, we become"

Contact me!

Have questions? Feel free to use the form or send me an email with any questions.

I will be responsive to your requests and your questions.