Compares two values to check if x <= y. If x is an object with a lte method, it returns x.lte(y), also checks x.eq(y) and x.lt(y). Otherwise it returns the result of x <= y.
x <= y
x
lte
x.lte(y)
x.eq(y)
x.lt(y)
true if x is less than or equal to y or false otherwise.
true
y
false
Generated using TypeDoc
Compares two values to check if
x <= y
. Ifx
is an object with alte
method, it returnsx.lte(y)
, also checksx.eq(y)
andx.lt(y)
. Otherwise it returns the result ofx <= y
.Returns
true
ifx
is less than or equal toy
orfalse
otherwise.See