Function isCronRange

  • Check if given is CronRange.

    Example

    isCronRange({ from: 10, to: 20 }); // true
    isCronRange({}); // false

    Returns

    Returns true if is CronRange, false otherwise.

    Type Parameters

    • Value

    Parameters

    • value: unknown

      Value to check.

    Returns value is CronRange<Value>