lib/api/PluginManager.js
function validatePriority (priority) {
  var type = typeOf(priority);

  if (type.hasValue && !type.isNumber) {
    throw ono('Invalid arguments. Expected a priority number.');
  }
}
function validatePriority (priority) {
  var type = typeOf(priority);

  if (type.hasValue && !type.isNumber) {
    throw ono('Invalid arguments. Expected a priority number.');
  }
}
function validatePriority ( priority ) { var type = typeOf ( priority ) ; if ( type . hasValue && ! type . isNumber ) { throw ono ( 'Invalid arguments. Expected a priority number.' ) ; } }
Ensures that a user-supplied value is a valid plugin priority.
An error is thrown if the value is invalid.

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