title: Compare two nested objects by its keys and get the matched object/array
body: <p>I have 2 objects a and diff
  I need the matching array or object from nested object "a".</p>
  
  <p>The INPUT as below :</p>
  
  <pre><code> var a = {
  "AMI_DESCRIPTION":{
      "tags":{
          "aws":1,
          "vendor_param":1
      }
  },
  "AMI_ID":{
      "description":"The AWS AMI id for the version of Ontap for the VSA to boot up with",
      "tags":{
          "aws":1,
          "vendor_param":1
      }
  },
  "AMI_TYPE":{
      "allow":[
          "byol",
          "paygo10",
          "paygo2",
          "paygo"
      ],
      "default":"byol",
      "description":"Defined the type of Cloud Ontap AMI to be deployed",
      "tags":{
          "aws":1,
          "vendor_param":1
      }
  },
  "AWSCLI_PATH":{
      "default":"/usr/software/bin/aws",
      "description":"Path to AWS CLI binaries",
      "tags":{
          "aws":1,
          "dev_only":1,
          "vendor_param":1
      }
  },
  "AWS_DISABLE_ROLLBACK":{
      "allow":[
          "true",
          "false"
      ],
      "default":"false",
      "description":"",
      "tags":{
          "aws":1,
          "dev_only":1,
          "unsupported":1,
          "vendor_param":1
      }
  },
  "IMAGE_BUILDNAME":{
          "allow":[
              "cst-ok",
              "cit-ok",
              "none",
              "ignore_filter"
          ],
          "default":"cit-ok",
          "description":"filter",
          "tags":{
              "aws":1,
              "gcp":1,
              "vendor_param":1
          }
  },
  "IMAGE_DEBUG_TYPE":{
          "description":"tedst",
          "tags":{
              "common":1,
              "vendor_param":1
          }
  },
  </code></pre>
  
  <p>Map the <code>a</code> object and return the values of fields present in the <code>diff</code> object</p>
  
  <pre><code> var diff = {
      "IMAGE_BUILDNAME":"testing",
      "IMAGE_DEBUG_TYPE":"no"
  </code></pre>
  
  <p>}</p>
  
  <p>Expected Output:</p>
  
  <pre><code>  "IMAGE_BUILDNAME":{ "description":"sdsd.", "tags":{ "aws":1, "gcp":1, 
    "vendor_param":1 } }, "IMAGE_DEBUG_TYPE":{ "allow":[ "debug", "non-debug", 
    "ignore_filter" ], "default":"non-debug", "description":"filter.", "tags":{                
     "aws":1, "gcp":1, "vendor_param":1 } }
  </code></pre>
  
  <p>Thanks in advance</p>