get key corresponding to value in js object
<p>I have an object such as :</p>

<pre><code>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".
</code></pre>

<p>I am able to get the value corresponding to key.</p>

<p>But I am not able to get the key corresponding to value in javascript  Object. </p>

<p>Such as I have <code>"A Pillar LH"</code> and I need to get the corresponding key     which is <code>a_pillar_lh</code>. </p>

<p>I have tried to use <code>indexOf</code> but no success.</p>