We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b4fed3 commit 58182d4Copy full SHA for 58182d4
src/caller.js
@@ -1,12 +1,14 @@
1
const station = require('./data');
2
+const { NumberRange } = require('./number-range');
3
const readingsOutsideRange = require('./readings-outside-range');
4
5
const operatingPlan = { temperatureFloor: 50, temperatureCeiling: 55 };
-
6
+const range = new NumberRange(operatingPlan.temperatureFloor, operatingPlan.temperatureCeiling);
7
const alerts = readingsOutsideRange(
8
station,
9
operatingPlan.temperatureFloor,
- operatingPlan.temperatureCeiling
10
+ operatingPlan.temperatureCeiling,
11
+ range
12
);
13
14
console.log(alerts);
0 commit comments