index.js
function validateRunnerArgs(Ctor, config, argv, cb) {
  if (typeof cb !== 'function') {
    throw new Error('expected a callback function');
  }
  if (argv == null || typeof argv !== 'object') {
    return new Error('expected the third argument to be an options object');
  }

  if (config == null || typeof config !== 'object') {
    return new Error('expected the second argument to be a liftoff config object');
  }

  if (typeof Ctor !== 'function' || typeof Ctor.namespace !== 'function') {
    return new Error('expected the first argument to be a Base constructor');
  }
}
function validateRunnerArgs(Ctor, config, argv, cb) {
  if (typeof cb !== 'function') {
    throw new Error('expected a callback function');
  }
  if (argv == null || typeof argv !== 'object') {
    return new Error('expected the third argument to be an options object');
  }

  if (config == null || typeof config !== 'object') {
    return new Error('expected the second argument to be a liftoff config object');
  }

  if (typeof Ctor !== 'function' || typeof Ctor.namespace !== 'function') {
    return new Error('expected the first argument to be a Base constructor');
  }
}
function validateRunnerArgs ( Ctor , config , argv , cb ) { if ( typeof cb !== 'function' ) { throw new Error ( 'expected a callback function' ) ; } if ( argv == null || typeof argv !== 'object' ) { return new Error ( 'expected the third argument to be an options object' ) ; } if ( config == null || typeof config !== 'object' ) { return new Error ( 'expected the second argument to be a liftoff config object' ) ; } if ( typeof Ctor !== 'function' || typeof Ctor . namespace !== 'function' ) { return new Error ( 'expected the first argument to be a Base constructor' ) ; } }
Handle invalid arguments
Handle invalid arguments