Function isStringMonthValue

  • Check if given is a string representing a CronMonthValue.

    Example

    isStringMonthValue("10"); // true
    isStringMonthValue("OCT"); // true
    isStringMonthValue("oct"); // true
    isStringMonthValue("OCTOBER"); // false
    isStringMonthValue("50"); // false
    isStringMonthValue("INVALID"); // false

    Returns

    Returns true if is a string representing a CronMonthValue, false otherwise.

    Parameters

    • value: unknown

      Value to check.

    Returns boolean