lib/Path.js
function( string ){
            string = $this.slash.clean( string );

            if( string[ 0 ] === $this.slash.get()) string = string.substr( 1 );
            if( string[ string.length -1 ] === $this.slash.get()) string = string.substr( 0, string.length -1 );

            return string;
        }
function( string ){
            string = $this.slash.clean( string );

            if( string[ 0 ] === $this.slash.get()) string = string.substr( 1 );
            if( string[ string.length -1 ] === $this.slash.get()) string = string.substr( 0, string.length -1 );

            return string;
        }
function ( string ) { string = $this . slash . clean ( string ) ; if ( string [ 0 ] === $this . slash . get ( ) ) string = string . substr ( 1 ) ; if ( string [ string . length - 1 ] === $this . slash . get ( ) ) string = string . substr ( 0 , string . length - 1 ) ; return string ; }
Removes the value of "slash.string" from the start AND end of the provided string,
unless the first AND last characters do not match the value of "slash.string".
@param {string} string
@returns {string}
Removes the value of slash . string from the start AND end of the provided string unless the first AND last characters do not match the value of slash . string .