Function lte

  • Checks if value is less than or equal to other.

    Parameters

    • value: any

      The value to compare.

    • other: any

      The other value to compare.

    Returns boolean

    Returns true if value is less than or equal to other, else false.

    3.9.0

    gt, gte, lt

    lte(1, 3)
    // => true

    lte(3, 3)
    // => true

    lte(3, 1)
    // => false