0.0.2 • Published 3 years ago

isgreater v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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