Function isStringRange

  • Check if given is a string representing a CronRange.

    Example

    isStringRange("10-20"); // true
    isStringRange("13-10-1989"); // false
    isStringRange("value"); // false

    Returns

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

    Parameters

    • value: unknown

      Value to check.

    Returns value is string