Function gt

  • Checks if value is greater than other.

    Type Parameters

    • T

    Parameters

    • value: T

      The value to compare.

    • other: T

      The other value to compare.

    Returns boolean

    Returns true if value is greater than other, else false.

    Since

    5.7.0

    See

    [[gte]], [[lt]], [[lte]]

    Example

    gt(3, 1)
    // => true

    gt(3, 3)
    // => false

    gt(1, 3)
    // => false