function resolvePositiveNumber(num, defaultValue) {
  const posNum = resolveNumber(num, defaultValue);
  if (posNum > 0) return posNum;
  return defaultValue;
}
Check if number is a positive integer, otherwise return default
@param {object} num
@param {number} defaultValue
@returns