Mysterious javascript behaviour: unequal equals
<p>I really don't know how is it possible, and I couldn't reproduce the error in a simplified environment, say JSFiddle. But here is how it looks in my application. </p>

<p>I'm trying to convert value that can be 'True', 'False' or 'something else' string into boolean if it is either True or False. In most cases it works just fine (although they may be a slicker way of doing the conversion) as it is shown on the picture below</p>

<p><img src="http://i.stack.imgur.com/8yVbg.png" alt="enter image description here"></p>

<p>however on occasion it fails and the value of the watch shows as follow:</p>

<p><img src="http://i.stack.imgur.com/DBgIZ.png" alt="enter image description here"></p>

<p>So suddenly string variable with a value of "True" is not equal to a "True" string literal. I'm lost. How is it possible? What am I missing here? </p>

<p>Thanks in advance</p>
