Checks if a number is between two values (inclusive)

  • Parameters

    • bounds: [number, number]

      Lower and upper bounds

    • n: number

      Number to check

    Returns boolean

    True if n is between low and high