Function lte

  • Checks if value is less than or equal to 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 less than or equal to other, else false.

    Since

    5.7.0

    See

    [[gt]], [[gte]], [[lt]]

    Example

    lte(1, 3)
    // => true

    lte(3, 3)
    // => true

    lte(3, 1)
    // => false