lib/api/Config.js
function validateConfig (config) {
  var type = typeOf(config);

  if (type.hasValue && !type.isPOJO) {
    throw ono('Invalid arguments. Expected a configuration object.');
  }
}
function validateConfig (config) {
  var type = typeOf(config);

  if (type.hasValue && !type.isPOJO) {
    throw ono('Invalid arguments. Expected a configuration object.');
  }
}
function validateConfig ( config ) { var type = typeOf ( config ) ; if ( type . hasValue && ! type . isPOJO ) { throw ono ( 'Invalid arguments. Expected a configuration object.' ) ; } }
Ensures that a user-supplied value is a valid configuration POJO.
An error is thrown if the value is invalid.

@param {*} config - The user-supplied value to validate
Ensures that a user - supplied value is a valid configuration POJO . An error is thrown if the value is invalid .