lib/cronTrigger.js
function checkNum(nums, min, max){
  if(nums == null)
    return false;

  if(nums == -1)
    return true;

  for(let i = 0; i < nums.length; i++){
    if(nums[i]<min || nums[i]>max)
      return false;
  }

  return true;
}
function checkNum(nums, min, max){
  if(nums == null)
    return false;

  if(nums == -1)
    return true;

  for(let i = 0; i < nums.length; i++){
    if(nums[i]<min || nums[i]>max)
      return false;
  }

  return true;
}
function checkNum ( nums , min , max ) { if ( nums == null ) return false ; if ( nums == - 1 ) return true ; for ( let i = 0 ; i < nums . length ; i ++ ) { if ( nums [ i ] < min || nums [ i ] > max ) return false ; } return true ; }
Check if the numbers are valid
@param nums The numbers array need to check
@param min Minimus value
@param max Maximam value
@return If all the numbers are in the data range
Check if the numbers are valid