📌  相关文章
📜  typescript 获取对象值 - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:32.786000             🧑  作者: Mango

代码示例1
const data = {
  a: "first",
  b: "second",
};

const values = Object.keys(data).map(key => data[key]);

const commaJoinedValues = values.join(",");
console.log(commaJoinedValues);