lib/functions/basename.js
function basename(p, ext){
  utils.assertString(p, 'path');
  return path.basename(p.val, ext && ext.val);
}
function basename(p, ext){
  utils.assertString(p, 'path');
  return path.basename(p.val, ext && ext.val);
}
function basename ( p , ext ) { utils . assertString ( p , 'path' ) ; return path . basename ( p . val , ext && ext . val ) ; }
Return the basename of `path`.

@param {String} path
@return {String}
@api public
Return the basename of path .