I know Some people might find this very easy. But It seems to be very difficult to start. If i have array i could have easily done with filter.
Lets say i have this object
const mapData = {family: ["gender", "ethnics"], house: ["wardNumber","livingType"]}
Now if I have atribute = "gender" How can i find the key family.
if I have atribute = "livingType" Then i need House;
Any Javascript pro here?
Thanks in advance