Skip to content

Instantly share code, notes, and snippets.

@rhiaro
Created January 16, 2016 22:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rhiaro/d63794ba7de19c2fe2e0 to your computer and use it in GitHub Desktop.
Save rhiaro/d63794ba7de19c2fe2e0 to your computer and use it in GitHub Desktop.
forceTrailingSlash: function(aString) {
if(aString.slice(-1) == "/") return aString;
else return aString + "/";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment