lib/Path.js
function( string ){
            if( string[ string.length -1 ] !== $this.slash.get()) string = string + $this.slash.get();

            return string;
        }
function( string ){
            if( string[ string.length -1 ] !== $this.slash.get()) string = string + $this.slash.get();

            return string;
        }
function ( string ) { if ( string [ string . length - 1 ] !== $this . slash . get ( ) ) string = string + $this . slash . get ( ) ; return string ; }
Adds the value of "slash.string" to the end of the provided string,
unless the last character is already the value of "slash.string".
@param {string} string
@returns {string}
Adds the value of slash . string to the end of the provided string unless the last character is already the value of slash . string .