Why doesn't TypeScript properly type Object.keys?
Nice explanation!<p>Although I’m surprised there is no mention of the best solution for iterating both keys and values:<p>for (const [key, val] of Object.entries(obj)) {
  console.log(key, val)
}<p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/entries" rel="nofollow noreferrer">https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...</a>