code: function (queueDef) {
    if (isString(queueDef)) {
      return true
    }
    if (isObject(queueDef) && isString(queueDef.name)) {
      return true
    }
    return false
  }
docs: Check if queueDef is string or definition object with `name` prop