📜  javascript fromEntries - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:03.140000             🧑  作者: Mango

代码示例2
const arr = [ ['0', 'a'], ['1', 'b'], ['2', 'c'] ];
const obj = Object.fromEntries(arr);
console.log(obj); // { 0: "a", 1: "b", 2: "c" }