title: Replace JSON node values with one of their specific child node value - node JS
body: <p>I have this JSON object, and I would like to replace all 'title' and 'description' objects with
  title.es and description.es child values, somehow like this: item.title = item.title.es
  Could you help me to find the correct recursive algorithm?
  I tried to use recursive functions, but didn't worked.</p>
  <pre><code>[
    {
      &quot;name&quot;: &quot;aaa&quot;,
      &quot;title&quot;: {
        &quot;es&quot;: &quot;dfghfdghgfhgfh&quot;,
        &quot;en&quot;: &quot;hjklhjkljkhljkhlklj&quot;
      },
      &quot;services&quot;: [
        {
          &quot;name&quot;: &quot;aaa-1&quot;,
          &quot;title&quot;: {
            &quot;es&quot;: &quot;dfgdfgsdfg&quot;,
            &quot;en&quot;: &quot;dfghfgdhgfhgfhgf&quot;
          },
          &quot;services&quot;: [
            {
              &quot;name&quot;: &quot;aaa-1-1&quot;,
              &quot;title&quot;: {
                &quot;es&quot;: &quot;dfghgfhfghgfdh&quot;,
                &quot;en&quot;: &quot;dfghfgdhfgdhgfdh&quot;
              }
              &quot;description&quot;: {
                &quot;es&quot;: &quot;sdfgfdsgfdg&quot;,
                &quot;en&quot;: &quot;sertztrezrteztre&quot;
              }
            }
          ]
        },
        {
          &quot;name&quot;: &quot;aaa-2&quot;,
          &quot;title&quot;: {
            &quot;es&quot;: &quot;ertzrtez&quot;,
            &quot;en&quot;: &quot;ertuztzutzuztuzt&quot;
          }
        },
      ]
    },
    {
      &quot;name&quot;: &quot;bbb&quot;,
      &quot;title&quot;: {
        &quot;es&quot;: &quot;sdfsdfdsf&quot;,
        &quot;en&quot;: &quot;sdfsdfdsfdsfdsf&quot;
      },
      &quot;services&quot;: [
        {
          &quot;name&quot;: &quot;bbb-1&quot;,
          &quot;title&quot;: {
            &quot;es&quot;: &quot;sdfsdfdsfdsf&quot;,
            &quot;en&quot;: &quot;sdfdsfdsfds&quot;
          },
          &quot;services&quot;: [
            {
              &quot;name&quot;: &quot;bbb-1-1&quot;,
              &quot;title&quot;: {
                &quot;es&quot;: &quot;werwerewrewr&quot;,
                &quot;en&quot;: &quot;werwerwerwerew&quot;
              }
            },
            {
              &quot;name&quot;: &quot;bbb-1-2&quot;,
              &quot;title&quot;: {
                &quot;es&quot;: &quot;werewrewrwerewr&quot;,
                &quot;en&quot;: &quot;werewrewrewrwerwerwerwerewr&quot;
              }
            }
          ]
        }
      ]
    }
  ]
  </code></pre>