lib/assert-opts.js
function (queues, name) {
  var result = queues.filter(function (queue) {
    return queue.name === name
  })
  return result.length > 0
}
function (queues, name) {
  var result = queues.filter(function (queue) {
    return queue.name === name
  })
  return result.length > 0
}
function ( queues , name ) { var result = queues . filter ( function ( queue ) { return queue . name === name } ) return result . length > 0 }
Check if queue with provided `name` exists in the array of queueDefs
@param {Array} array of nromalized queueDefs
@param {String} queueName to check for existence
@param {Array} array of mixed queueNames or queueDefs
@return {Boolean} true if queue with `name` exists in the array of queueDefs
Check if queue with provided name exists in the array of queueDefs