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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.5.0
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.5.0
    3
  • 0.4.0
    0
  • 0.3.0
    0
  • 0.2.0
    0
  • 0.1.0
    0

Package Sidebar

Install

npm i greater-than

Weekly Downloads

3

Version

0.5.0

License

MIT

Last publish

Collaborators

  • wilmoore