function basename(path) {
           ensureNotUNC(path);
           return path.slice(Math.max(path.lastIndexOf("\\"),
             path.lastIndexOf(":")) + 1);
         }
/**
          * Return the final part of the path.
          * The final part of the path is everything after the last "\\".
          */
Return the final part of the path.
The final part of the path is everything after the last "\\".
Return the final part of the path . The final part of the path is everything after the last " \\ " .
function basename(path) {
           ensureNotUNC(path);
           return path.slice(Math.max(path.lastIndexOf("\\"),
             path.lastIndexOf(":")) + 1);
         }
function basename ( path ) { ensureNotUNC ( path ) ; return path . slice ( Math . max ( path . lastIndexOf ( "\\" ) , path . lastIndexOf ( ":" ) ) + 1 ) ; }
Return the final part of the path.
Return the final part of the path .