index.js
function isstats (obj) {
  // genuine fs.Stats
  if (typeof Stats === 'function' && obj instanceof Stats) {
    return true
  }

  // quack quack
  return obj && typeof obj === 'object' &&
    'ctime' in obj && toString.call(obj.ctime) === '[object Date]' &&
    'mtime' in obj && toString.call(obj.mtime) === '[object Date]' &&
    'ino' in obj && typeof obj.ino === 'number' &&
    'size' in obj && typeof obj.size === 'number'
}
function isstats (obj) {
  // genuine fs.Stats
  if (typeof Stats === 'function' && obj instanceof Stats) {
    return true
  }

  // quack quack
  return obj && typeof obj === 'object' &&
    'ctime' in obj && toString.call(obj.ctime) === '[object Date]' &&
    'mtime' in obj && toString.call(obj.mtime) === '[object Date]' &&
    'ino' in obj && typeof obj.ino === 'number' &&
    'size' in obj && typeof obj.size === 'number'
}
function isstats ( obj ) { // genuine fs.Stats if ( typeof Stats === 'function' && obj instanceof Stats ) { return true } // quack quack return obj && typeof obj === 'object' && 'ctime' in obj && toString . call ( obj . ctime ) === '[object Date]' && 'mtime' in obj && toString . call ( obj . mtime ) === '[object Date]' && 'ino' in obj && typeof obj . ino === 'number' && 'size' in obj && typeof obj . size === 'number' }
Determine if object is a Stats object.

@param {object} obj
@return {boolean}
@api private
Determine if object is a Stats object .