lib/dep-validate.js
function hasErrors(results) {
  return  (results.dependencies && results.dependencies.length) ||
          (results.devDependencies && results.devDependencies.length)
}
function hasErrors(results) {
  return  (results.dependencies && results.dependencies.length) ||
          (results.devDependencies && results.devDependencies.length)
}
function hasErrors ( results ) { return ( results . dependencies && results . dependencies . length ) || ( results . devDependencies && results . devDependencies . length ) }
Detects if a results Object contains any errors.

@param results our Object containing validation results.
@returns true if errors are contained in the results.
Detects if a results Object contains any errors .