Function isStringDayOfWeekValue

  • Check if given is a string representing a CronDayOfWeekValue.

    Example

    isStringDayOfWeekValue("5"); // true
    isStringDayOfWeekValue("FRI"); // true
    isStringDayOfWeekValue("fri"); // true
    isStringDayOfWeekValue("FRIDAY"); // false
    isStringDayOfWeekValue("10"); // false
    isStringDayOfWeekValue("INVALID"); // false

    Returns

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

    Parameters

    • value: unknown

      Value to check.

    Returns boolean