📜  json 数据查找 - Javascript 代码示例

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

代码示例3
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]]