in-interval
v1.0.1
Published
Determines whether the number in the specified interval
Downloads
62
Maintainers
Readme
In interval
Determines whether the number in the specified interval.
Install
$ npm install --save in-interval
Usage
var inRange = require('in-interval');
inRange(0, '[-10,Infinity)');
//=> true
inRange(Math.PI, {
from: {
value: -1,
included: false
},
to: {
value: 1,
included: false
}
});
//=> false
License
MIT © Dmitry Semigradsky