JSFiddle - React, Tailwind, and code Playground
by nehamahajan
JavaScript
function checkForAnomaly(value, upperBound, lowerBound) {
return value > upperBound || value < lowerBound;
}
console.log(checkForAnomaly(-0.25, 3, 1));