([value1: any, value2: any]): boolean
The _lte
operator tests if the first value is less than or equal to the second equal. It takes an array of two values to test.
The
_lte
operator tests using the javascript less than or equal to operator. You can find a description of the algorithm used to compare two values here.
Arguments
array
An array of two values to compare.
Examples
Two numbers:
_lte:
- 4
- 3
Returns: false
_lte:
- 1
- 1
Returns: true
_lte:
- _sum:
- 3
- 4
- 8
Returns: true
Two strings:
_lte:
- "a"
- "b"
Returns: true