JavaScript: How to filter object into list of keys where nested property meets condition? : <p>How can I filter an object into an array of keys matching a particular condition on nested object values. For example if I want to filter the following</p>

<pre><code>let object = {
  'key1': {
    'value': 'one'
   },
  'key2': {
    'value': 'two'
   },
  'key3': {
    'value': 'two'
   }
}
</code></pre>

<p>by children that have <code>'value': 'two'</code> to produce</p>

<pre><code>['key2', 'key3']
</code></pre>

<p>how might I achieve this.</p>
