Options
All
  • Public
  • Public/Protected
  • All
Menu

Module lte

Index

References

Functions Lang

References

Renames and re-exports lte

Lang Functions

  • lte<T>(value: T, other: T): boolean
  • Checks if value is less than or equal to other.

    since

    5.7.0

    see

    gt, gte, lt

    example
    lte(1, 3)
    // => true

    lte(3, 3)
    // => true

    lte(3, 1)
    // => false

    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.