title: Find maximum value in Object - React Hook
body: <p>I have a state in React that contains this values :</p>
  <pre><code>{
     income 1 : 500,
     income 2 : 300,
     income 3 : 1000
  }
  </code></pre>
  <p>This state extend, the customer can add or delete rows in the state, so I need to find in a dynamic way the key/value where the value is the higher in the Object.</p>
  <p>I tried this, but it retrieve only the first key/value :</p>
  <pre><code>export const maxIncome = (userWalletIncomes) =&gt; {
      for (const [key, value] of Object.entries(userWalletIncomes)) {
          return `${key} : ${Math.max(value)}`
      }
  }
  </code></pre>
  <p>Any idea ?</p>