title: JQuery InArray not working Properly?
body: <p>Need to find whether array object If exist in array. I have one arrayObject and array collections.</p>
  
  <p>my code:</p>
  
  <pre><code>var array = [
  {
      id:0,
      item_fields:{text: "stack", type: "2", options: null},
      item_id:"540551c1-1744-4f09-920f-75350ba23cb6",
      item_parent:"e50b00d5-8c3e-449e-92ba-41ff9d46babe",
      sequence:-1
  },
  
  {
      id:0,
      item_field_type:"multiChoiceNumeric",
      item_fields:{text: "overflow", type: "RangeNumeric", options: null},
      item_id:"1bacc69f-d8c9-4107-af60-295f8994d249",
      item_parent:"e50b00d5-8c3e-449e-92ba-41ff9d46babe",
      sequence:-1
  }];
  
  var arrObj = 
  {
      id:0,
      item_field_type:"multiChoiceNumeric",
      item_fields:{text: "stack", type: "2", options: null},
      item_id:"540551c1",
      item_parent:"e50b00d5",
      sequence:-1
  }
  </code></pre>
  
  <p>This query returns false:</p>
  
  <pre><code>array.some(function(element){return element == arrObj})
  </code></pre>
  
  <p>This query returns -1 (If not found):</p>
  
  <pre><code>jQuery.inArray(arrObj,array)
  </code></pre>
  
  <p>Why do both queries return not found results? What should I do to get a correct result?</p>