The array of numbers to evaluate against the conditions.
A comma-separated string containing conditions to evaluate.
An array of boolean values indicating if each element in the array satisfies all the conditions. True means all conditions are met for that element, otherwise false.
Evaluates a set of conditions over an array of numbers, returning an array of booleans indicating whether each element in the input array satisfies all specified conditions.
The condition string should have the format
{value/x} {expression} {x/value}
, wherevalue
should to be number value, and expression like token: ">" | ">=" | "<" | "<=" | "=".The
conditions
are parsed using theparseCondition
function and each parsed condition is evaluated using the corresponding function inexpr
.It supports conditions where 'x' denotes the variable and the
expression
determines the comparison to either side.Example
Throws
Throws an error if any condition string does not match the required format.