• Returns a function that adds an interval

    Parameters

    • interval: string

    Returns ((other) => string | void)

      • (other): string | void
      • Parameters

        • other: string

        Returns string | void

    Function

    Example

    ['1P', '2M', '3M'].map(Interval.addTo('5P')) // => ["5P", "6M", "7M"]