title: Underscore, check if key exists in array of objects
body: <p>I am trying to check new data I am receiving against an object I am holding onto, and what I am trying to find out is if they key of the object I am being send matches any keys in the object I currently have.</p>
  
  <p>So I am holding onto an object like </p>
  
  <pre><code>myObj = [{"one": 1}, {"two": 2 },{"three" : 3}];
  </code></pre>
  
  <p>And I get sent a single object like</p>
  
  <pre><code>{"three" : 5 }
  </code></pre>
  
  <p>And I want to just check this object against the array of objects (myObj) and see if there is anything with the key "three" inside of it ( I don't care about the values, just the key matching) so I can pop it into an if statement to separate like -</p>
  
  <pre><code>if( array of objects (myObj) has key from single object ( "three" ) ) {}
  </code></pre>
  
  <p>I am using underscore. Thanks!</p>
  
  <p>Edit : Sorry this was not clear, I am editing it to clarify - </p>
  
  <p>I am holding onto myObj (the array of objects), and being sent a single object - the "three" for example, and I just want to pull that single object key out (Object.keys(updatedObject)[0]) and check if any of the objects in the object array have that key.</p>
  
  <p>So _has seems like it is just for checking a single object, not an array of objects.</p>