Evaluates whether the given value is between the minimum and the maximum (both inclusive).
between(5, 0, 10); // truebetween(5, 0, 4); // false Copy
between(5, 0, 10); // truebetween(5, 0, 4); // false
number to compare
min value
max value
true if the number is between the min and the max, false instead
Evaluates whether the given value is between the minimum and the maximum (both inclusive).
Example