Skip to content

Semigradsky/in-interval

Repository files navigation

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

About

Determines whether the number in the specified interval

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published