_.gt(value, other)

sourcenpm package

Checks if value is greater than other.

Since

3.9.0

Arguments

  • value (*): The value to compare.
  • other (*): The other value to compare.

Returns

(boolean): Returns true if value is greater than other, else false.

Example

  1. _.gt(3, 1);
    // => true
    _.gt(3, 3);
    // => false
    _.gt(1, 3);
    // => false