is-number-between
v1.0.11
Published
Check if a number is between another two numbers; extremes are included.
Downloads
14
Maintainers
Readme
is-number-between
Check if a number is between another two numbers; extremes are included.
Definition
minimum => maximum => number => Boolean
minimum
: is the lower bound of intervalmaximum
: is the higher bound of intervalnumber
: is the number to evaluate
Example
const isNumberBetween = require('is-number-between');
isNumberBetween(0)(10)(10); // true
isNumberBetween(0)(10)(11); // false