📅  最后修改于: 2022-03-11 15:03:43.399000             🧑  作者: Mango
Copy
1const object1 = {
2 a: 'somestring',
3 b: 42
4};
5
6console.log(Object.entries(object1));
7
8// expected output:
9// Array [Array ["a", "somestring"], Array ["b", 42]]