• Returns whether or not the given value lies between v1 and v2.

    Parameters

    • value: number

      Value to compare

    • v1: number

      One bound of the range. This method orders the bounds as needed.

    • v2: number

      Other bound of the range. This method orders the bounds as needed.

    • Optional inclusive: boolean

      If true, value can also equal v1 or v2 (ie the range is inclusive)

    Returns boolean