title: How to get parent key from child in Object
body: <p>Given an Object, I want to get the parent key starting from the child. Since I only care about the key I'm iterating from enntries, but it always returns undefined.</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var book = {
      "chapter1": {
          "paragraph1": {
              "text": "..."
          },
          "paragraph2": {
              "text": "..."
          }
      },
      "chapter2": {
          "paragraph3": {
              "text": "..."
          },
          "paragraph4": {
              "text": "..."
          }
      },
      "chapter3": {
          "paragraph5": {
              "text": "..."
          },
          "paragraph6": {
              "text": "..."
          }
      }
  };
  
  
  var section = "paragraph3";
  
  const category = Object.entries(book).find(([, e]) =&gt; Object.values(e).includes(section)); /// should return chapter2
  
  if (category) {
      console.log(category[0], category[1]);
  } else {
      console.log("Not Found");
  }</code></pre>
  </div>
  </div>
  </p>