The array of numbers to be compared.
The value each element of the array is compared against.
Optional
eq: boolean = falseA boolean indicating if the comparison should be
less than or equal to (true
), or strictly less than (false
).
An array of booleans where each boolean indicates if
the corresponding element in array
is less than (or less than or equal to) value
.
Returns an array indicating whether each element of the input array is less than or equal to a given value (if
eq
is true) or strictly less than the value (ifeq
is false).Example