Check if a value exists in an object : <p>I'm trying do some validations based of an object with key-value pairs like below</p>

<p><code>var map = {'1': ['a','b','c'], '2': ['d','e'], '3': 'f'}</code></p>

<p>and I want to check if my desired value is in a particular key segment
<code>if('a' in map[1])</code></p>

<p>is there a way where we can check it like above?</p>
