I have a following array: [400, 600, 1000]
- I need to see a changing/dynamic value against this array if it equals to any of the values inside the array and return the index of the value matched.
Tried:
arr.every(x => x = dynamicValue );
This return boolean