title: Lodash: Swap key with value objects internal attribute
body: <p>I am getting below JSON response:</p>
  
  <pre><code>users: {
      1: {
          name: "John",
          email: "john@test.com",
          id: 1,
          place: "NY"
      },
      2: {
          name: "Alex",
          email: "alex@test.com",
          id: 2,
          place: "FL"
      },
      3: {
          name: "Tony",
          email: "tony@test.com",
          id: 3,
          place: "TX"
      }
      .
      .
      .
      .
      .
      .
  }
  </code></pre>
  
  <p>I want to swap the id key with email key from the inner object value as below format. </p>
  
  <pre><code>users: {
      "john@test.com": {
          name: "John",
          email: "john@test.com",
          id: 1,
          place: "NY"
      },
  }
  </code></pre>
  
  <p>I am using below lodash code to make it work and its working fine:</p>
  
  <pre><code>_.keyBy(_.values(data), 'email');
  </code></pre>
  
  <p>Is there a better way I can handle it with lodash? I am new to lodash and I wanted to understand whether the code can be refactored further.</p>