Please can you give an example of result you're waiting for ?
Dec 8, 2022
2
Level 2
Check conditions in Array
basically i have array like this
let arr = [
{
value_1: "1",
value_2: "1"
condition: "equal to",
conditionOperator: "None"
},
{
value_1: "1",
value_2: "2"
conditon: "equal to",
conditionOperator: "And"
},
{
value_1: "1",
value_2: "1"
condition: "not equal",
conditionOperator: "And"
},
{
value_1: "1",
value_2: "1"
condition: "equal to",
conditionOperator: "Or"
}
]
as you can see ts an array of conditions and need to check the condition for truthyness.. i would appreciate a function to handle this or clues ro the solution.
Please or to participate in this conversation.