function validateMaxWorkers(maxWorkers) {
  if (!isNumber(maxWorkers) || !isInteger(maxWorkers) || maxWorkers < 1) {
    throw new TypeError('Option maxWorkers must be an integer number >= 1');
  }
}
Ensure that the maxWorkers option is an integer >= 1
@param {*} maxWorkers
@returns {boolean} returns true maxWorkers has a valid value