```ts
export function rangeCheck(readings: number[], low: number, high: number): boolean {
  if (low > high) {
    throw new Error("Low must be less than or equal to high.");
  }

  const isOutOfRange = readings.some((reading) => reading < low || reading > high);

  return !isOutOfRange;
}
```