Lodash to find if object property exists in array : <p>I have an array of objects like this:</p>

<pre><code>[ {"name": "apple", "id": "apple_0"}, 
  {"name": "dog",   "id": "dog_1"}, 
  {"name": "cat", "id": "cat_2"}
]
</code></pre>

<p>I want to insert another element, also named <code>apple</code>, however, because I don't want duplicates in there, how can I use lodash to see if there already is an object in the array with that same name? </p>
