UNPKG

303 BJavaScriptView Raw
1var annotate = require('annotate');
2var is = require('annois');
3
4
5module.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
8function between(a, min, max) {
9 return min <= a && a <= max;
10}