isgreater
v0.0.2
Published
Comapares two number
Downloads
2
Readme
isGreater
Usage
const isGreater = require('isgreater');
isGreater(value, comparator)
Validates if a value is greater than a comparator value.
var a = 10,
b = 0;
var bool = isGreater(a, b);
// returns true
Note: this method validates that both values are numeric before making the comparison. For non-numeric values, the method returns false
.
Examples
console.log(isGreater(2, 1 );
// returns true
console.log(isGreater(0, 1));
// returns false