docs/libs/typescript.js
function removeTrailingDirectorySeparator(path) {
        if (path.charAt(path.length - 1) === ts.directorySeparator) {
            return path.substr(0, path.length - 1);
        }
        return path;
    }
function removeTrailingDirectorySeparator(path) {
        if (path.charAt(path.length - 1) === ts.directorySeparator) {
            return path.substr(0, path.length - 1);
        }
        return path;
    }
function removeTrailingDirectorySeparator ( path ) { if ( path . charAt ( path . length - 1 ) === ts . directorySeparator ) { return path . substr ( 0 , path . length - 1 ) ; } return path ; }
Removes a trailing directory separator from a path.
@param path The path.
Removes a trailing directory separator from a path .