https://github.com/semigradsky/in-interval
Determines whether the number in the specified interval
https://github.com/semigradsky/in-interval
Last synced: 5 months ago
JSON representation
Determines whether the number in the specified interval
- Host: GitHub
- URL: https://github.com/semigradsky/in-interval
- Owner: Semigradsky
- License: mit
- Created: 2015-02-24T11:00:24.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2022-04-15T06:28:36.000Z (about 3 years ago)
- Last Synced: 2025-02-23T14:42:58.543Z (5 months ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# In interval [](https://travis-ci.org/Semigradsky/in-interval) [](https://david-dm.org/Semigradsky/in-interval)
> Determines whether the number in the specified interval.
## Install
```sh
$ npm install --save in-interval
```## Usage
```js
var inRange = require('in-interval');inRange(0, '[-10,Infinity)');
//=> trueinRange(Math.PI, {
from: {
value: -1,
included: false
},
to: {
value: 1,
included: false
}
});
//=> false```
## License
MIT © Dmitry Semigradsky