Function simplify

  • Get the simplified version of an interval.

    Parameters

    • name: string

    Returns IntervalName

    the simplified interval

    Function

    Example

    Interval.simplify("9M") // => "2M"
    Interval.simplify("2M") // => "2M"
    Interval.simplify("-2M") // => "7m"
    ["8P", "9M", "10M", "11P", "12P", "13M", "14M", "15P"].map(Interval.simplify)
    // => [ "8P", "2M", "3M", "4P", "5P", "6M", "7M", "8P" ]