📜  获取字典js的键 - Javascript代码示例

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

代码示例1
// Get keys of a dictionary
let dict = { a:1 , b:2 , c:3 }

console.log( Object.keys(dict) ) // expected output : ['a', 'b', 'c']