Function isStringYearValue

  • Check if given is a string representing a CronYearValue.

    Example

    isStringYearValue("1989"); // true
    isStringYearValue("3000"); // false

    Returns

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

    Parameters

    • value: unknown

      Value to check.

    Returns value is string