1.0.1 • Published 2 years ago

in-interval v1.0.1

Weekly downloads
32
License
MIT
Repository
github
Last release
2 years ago

In interval Build Status Dependency Status

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