src/server/views/dashboard/queueJobsByState.js
function isValidState(state, isBee) {
  const validStates = isBee ? BEE_STATES : BULL_STATES;
  return _.includes(validStates, state);
}
function isValidState(state, isBee) {
  const validStates = isBee ? BEE_STATES : BULL_STATES;
  return _.includes(validStates, state);
}
function isValidState ( state , isBee ) { const validStates = isBee ? BEE_STATES : BULL_STATES ; return _ . includes ( validStates , state ) ; }
Determines if the requested job state lookup is valid.

@param {String} state
@param {Boolean} isBee States vary between bull and bee

@return {Boolean}
Determines if the requested job state lookup is valid .