Function isInRange

  • Checks if number is between start and stop (inclusive range).

    Parameters

    • number: number

      The number to check.

    • start: number

      The start of the range.

    • stop: number

      The end of the range.

    Returns boolean

    Returns true if number is in the range, else false.

    Example

    isInRange(42, 40, 50);
    // => true

Generated using TypeDoc