Function isCronDayOfWeekValue

  • Check if given is CronDayOfWeekValue.

    Example

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

    Returns

    Returns true if is CronDayOfWeekValue, false otherwise.

    Parameters

    • value: unknown

      Value to check.

    Returns value is CronDayOfWeekValue