arr = ['1', '2', '3', '4', '+', '-', '*', '5', '6']
operatorsValue = ['+', '-', '*', '/', '%']
operatorPosition = arr.findIndex((x) => operatorsValue.includes(x));
Using operatorPosition I can find the index of '+' but i want to find the operator of '*' in the arr.