1 | var annotate = require('annotate');
|
2 | var is = require('annois');
|
3 |
|
4 |
|
5 | module.exports = annotate('between', 'Checks whether or not given bounds contain the given number, bounds included.').
|
6 | on(is.number, is.number, is.number, between);
|
7 |
|
8 | function between(a, min, max) {
|
9 | return min <= a && a <= max;
|
10 | }
|