I'm trying do some validations based of an object with key-value pairs like below
var map = {'1': ['a','b','c'], '2': ['d','e'], '3': 'f'}
and I want to check if my desired value is in a particular key segment
if('a' in map[1])
is there a way where we can check it like above?