greater-than

Whether given value or value within an object property is greater than X.

Usage no npm install needed!

<script type="module">
  import greaterThan from 'https://cdn.skypack.dev/greater-than';
</script>

README

greater-than

Build Status NPM version NPM downloads LICENSE

Whether given value or value within an object property is greater than X.

$ npm install greater-than

Usage

greater than primitive value
var minimum = require('greater-than')(10);
var numbers = [1, 5, 6, 9, 25, 33, 44];

var choosen = numbers.filter(minimum);
//=> [25, 33, 44]
greater than object property value
var isNonEmptyArray = require('greater-than')(0, 'length');

Users.active().then(isNonEmptyArray);
//=> true

Debug Logging

DEBUG=greater-than node …

License

MIT