index.js
function isFile(fp, stat) {
  if (stat === true) {
    stat = tryStats(fp);
  }
  return !isDir(fp, stat);
}
function isFile(fp, stat) {
  if (stat === true) {
    stat = tryStats(fp);
  }
  return !isDir(fp, stat);
}
function isFile ( fp , stat ) { if ( stat === true ) { stat = tryStats ( fp ) ; } return ! isDir ( fp , stat ) ; }
Return true if `fp` looks like a file, or
actually is a file if fs.stat is used.
Return true if fp looks like a file or actually is a file if fs . stat is used .