Let's say I have an input and typed hosu so what I want to be able to do is filter through this objects and get the value for it.So I should get 321234 which is the pincode for hosurRoad. How do i achieve this?
const recoganizedAreas = {
'hsr':'560102',
'bypanahalli':'676667',
'marathalli':'667776',
'hosurRoad':'321236',
'teachersColony':'560101'
};
const areas = Object.keys(recoganizedAreas);