Rename to inRange and reuse the Math module

This commit is contained in:
glhrmv 2017-09-23 16:19:02 +01:00
parent ea63fb743a
commit 20bc7331ad
2 changed files with 3 additions and 3 deletions

View file

@ -294,9 +294,9 @@ test('is.typedArray', t => {
t.false(m.typedArray({}));
});
test('is.withinRange', t => {
test('is.inRange', t => {
const x = 3;
const arr = [0, 5];
t.true(m.withinRange(x, arr));
t.true(m.inRange(x, arr));
});