rmTrailing
Removes dynamic trailing substring. Use if: what you want to remove is stored in a variable. Otherwise: you may want to use .replace() or a more specific module
How to use
Prerequisite
None
Example
var slash = '/'; ; //'hello/world',; //'hello/world' //'hello/world'; //'' //''