📜  对象获取值数组 - 无论代码示例

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

代码示例1
const data = {
    "2015": {
        "year": 2015,
        "cover": {}
    }
}

Object.entries(data).forEach(([key, value]) => console.log(key, value));