title: Form dictionary like structure from the given tabs and data
body: <p>I'm trying to form the dictionary from tabs and data by iterating</p>
  <p>I'm unable to form dictionary like structure and expected Output is mentioned</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>const tabs = {
    first: 'first',
    second: 'second',
    third: 'third'
  }
  
  const data = {
    accounts: {
      members: [
        {
          node: {id: '1', name: 'first'}
        },
        {
          node: {id: '2', name: 'second'}
        },
        {
          node: {id: '3', name: 'third'}
        },
      ]
    }
  }
  
  let expectedOutput = {'first': '1','second':'2','third':'3'}</code></pre>
  </div>
  </div>
  </p>