lib/index.js
function isValidPath(path) {
  if (path === null || path === undefined) return false;
  return typeof path === 'string' && path.length > 0;
}
function isValidPath(path) {
  if (path === null || path === undefined) return false;
  return typeof path === 'string' && path.length > 0;
}
function isValidPath ( path ) { if ( path === null || path === undefined ) return false ; return typeof path === 'string' && path . length > 0 ; }
Determine whether a path argument is valid
@param path
@return {boolean}
Determine whether a path argument is valid