lte source npm
_.lte(value, other)
Checks if value
is less than or equal to other
.
Arguments
- value (*)
The value to compare.
- other (*)
The other value to compare.
Returns (boolean)
Returns true
if value
is less than or equal to other
, else false
.
Example
_.lte(1, 3);
// => true
_.lte(3, 3);
// => true
_.lte(3, 1);
// => false