How to match object key name with lodash?
<p>I have two parent objects that serve different purposes.</p>

<p><a href="https://i.stack.imgur.com/ZvV32.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZvV32.png" alt="enter image description here"></a></p>

<p>Object 1 - Use to identify boolean value of that key</p>

<p>Object 2 - Contains real data to be used</p>

<p>What I'm trying to do: run matches on the names of both objects, </p>

<pre><code>if item3(object1)'s name === item3(object2)'s name
    if item3(object1) === true
        item3(object2)'s value ++
    else return;
</code></pre>

<p>Is it possible to get the object name and run comparisons? Or is there a better approach?</p>