Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/semigradsky/in-interval
Determines whether the number in the specified interval
https://github.com/semigradsky/in-interval
Last synced: 19 days 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 9 years ago)
- Default Branch: master
- Last Pushed: 2022-04-15T06:28:36.000Z (over 2 years ago)
- Last Synced: 2024-10-20T11:14:36.053Z (19 days 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 [![Build Status](https://travis-ci.org/Semigradsky/in-interval.svg)](https://travis-ci.org/Semigradsky/in-interval) [![Dependency Status](https://david-dm.org/Semigradsky/in-interval.svg)](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