title: How to check if an object contains another object like
body: <p>How to check if an object contains another object like</p>
  <pre><code>const LHS = {
  a : &quot;Something a&quot;,
  b : &quot;Something b&quot;,
  c : { a : &quot;Something a&quot;}
  }
  
  let RHS = {
  a : &quot;Something a&quot;,
  c : { a : &quot;Something a&quot;}
  }
  
  // How to write a function contains which replicates this behaviour
  
  contains(LHS, RHS) // should return true
  
   RHS = {
  a : &quot;Something a&quot;,
  c : { a : &quot;Something a&quot;},
  d : &quot;Something d&quot;
  }
  
  contians(LHS, RHS) // Should return false
  </code></pre>
  <p>I have abosulety no Idea how to do that. If you know some external libaries that does this please share it.</p>
  <p>Thanks</p>