Function every

  • Returns a filtered view of this interval representing every stepth date.

    The meaning of step is dependent on this interval’s parent interval as defined by the field function.

    For example, timeMinute.every(15) returns an interval representing every fifteen minutes, starting on the hour: :00, :15, :30, :45, etc. Note that for some intervals, the resulting dates may not be uniformly-spaced; timeDay’s parent interval is timeMonth, and thus the interval number resets at the start of each month.

    If step is not valid, returns null. If step is one, returns this interval.

    This method can be used in conjunction with interval.range to ensure that two overlapping ranges are consistent.

    The returned filtered interval does not support interval.count. See also interval.filter.

    Parameters

    • step: number

      Number of steps.

    Returns TimeInterval