title: How to check for case insensitive in JavaScript object.hasOwnProperty(value);
body: <pre><code>var obj={};
  var duplicate-flag = false;
  
  if(obj.hasOwnProperty(value))
  {
      duplicate-flag = true;
  } else {
      flag=false;
  }
  </code></pre>
  
  <p>I am using above code to check list input text elements for duplicates, but fails since its case sensitive.</p>