greater-than

0.5.0 • Public • Published

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

/greater-than/

    Package Sidebar

    Install

    npm i greater-than

    Weekly Downloads

    6

    Version

    0.5.0

    License

    MIT

    Last publish

    Collaborators

    • wilmoore