I am working with the following code snippet:
const searchValue = 'XYZ';
const FIELD_MAP = {
'key1': [
'SOME',
'THING'
],
'key2': [
'ANOTHER_VALUE',
'XYZ'
]
};
My goal is to determine which array (key1, key2, etc) contains the value stored in the searchValue variable. What would be the most efficient approach to accomplish this task?