function defaultJoinRoute(...args) {
    // Note: add a trailing "" to get a trailing "/"
    var route = [];
    for (var i = 0; i < args.length; i++) {
            var value = args[i];
            if (i >= args.length - 1) {
                    // skip the last argument; we want to preserve a trailing slash if
                    // we are given one.
            } else if (!isNaN(value - parseFloat(value))) {
                    // Numbers don't have trailing slashes (and don't have a replace method.
            } else {
                    value = value.replace(/\/$/, "");
            }
            route.push(value);
    }
    return route.join("/");
}
/* joinRoute(list, of, args)
 *
 * Join the given arguments together with '/' for use in a URL. Attempt to
 * avoid generating '//' in the route by stripping trailing slashes from
 * values being joined.
 *
 * If the last argument has a trailing slash, the resulting route will have
 * a trailing slash.
 */
joinRoute(list, of, args)
Join the given arguments together with '/' for use in a URL. Attempt to
avoid generating '//' in the route by stripping trailing slashes from
values being joined.

If the last argument has a trailing slash, the resulting route will have
a trailing slash.
joinRoute ( list of args ) Join the given arguments together with ' / ' for use in a URL . Attempt to avoid generating ' // ' in the route by stripping trailing slashes from values being joined . If the last argument has a trailing slash the resulting route will have a trailing slash .
function defaultJoinRoute(...args) {
    var route = [];
    for (var i = 0; i < args.length; i++) {
            var value = args[i];
            if (i >= args.length - 1) {
            } else if (!isNaN(value - parseFloat(value))) {
            } else {
                    value = value.replace(/\/$/, "");
            }
            route.push(value);
    }
    return route.join("/");
}
function defaultJoinRoute ( ... args ) { var route = [ ] ; for ( var i = 0 ; i < args . length ; i ++ ) { var value = args [ i ] ; if ( i >= args . length - 1 ) { } else if ( ! isNaN ( value - parseFloat ( value ) ) ) { } else { value = value . replace ( / \/$ / , "" ) ; } route . push ( value ) ; } return route . join ( "/" ) ; }
joinRoute(list, of, args)
 Join the given arguments together with '/' for use in a URL.
joinRoute ( list of args ) Join the given arguments together with ' / ' for use in a URL .
// Note: add a trailing "" to get a trailing "/" // skip the last argument; we want to preserve a trailing slash if // we are given one. // Numbers don't have trailing slashes (and don't have a replace method.