Check if the value is within the scope
inScope(0, [0, 1]); // => trueinScope(1, [0, 1]); // => trueinScope(2, [0, 1]); // => falseinScope(-1, [0, 1]); // => false Copy
inScope(0, [0, 1]); // => trueinScope(1, [0, 1]); // => trueinScope(2, [0, 1]); // => falseinScope(-1, [0, 1]); // => false
Check if the value is within the scope