I have an object such as :
var inspectionMapping = {'a_pillar_lh' : "A Pillar LH",
'b_pillar_lh' : "B Pillar LH"};
console.log(inspectionMapping['a_pillar_lh']);
// Which gives me correct "A Pillar LH".
I am able to get the value corresponding to key.
But I am not able to get the key corresponding to value in javascript Object.
Such as I have "A Pillar LH" and I need to get the corresponding key which is a_pillar_lh.
I have tried to use indexOf but no success.
Object.keys(obj)