2021-12-31
const array = [ ['one', 1], ['two', 2], ]; Object.fromEntries(array); // { one: 1, two: 2 }