lib/assert-opts.js
function (queueDef) {
  if (isString(queueDef)) {
    return true
  }
  if (isObject(queueDef) && isString(queueDef.name)) {
    return true
  }
  return false
}
function (queueDef) {
  if (isString(queueDef)) {
    return true
  }
  if (isObject(queueDef) && isString(queueDef.name)) {
    return true
  }
  return false
}
function ( queueDef ) { if ( isString ( queueDef ) ) { return true } if ( isObject ( queueDef ) && isString ( queueDef . name ) ) { return true } return false }
Check if queueDef is string or definition object with `name` prop
Check if queueDef is string or definition object with name prop