Exemplo de objeto de entradas

const entries = [
  ['foo', 'bar'],
  ['baz', 42]
];

Object.fromEntries(entries)
WindMillCode