📜  获取枚举类型脚本代码示例的键

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

代码示例2
let enums = Object.keys(SomeEnum).filter(x => !(parseInt(x) >= 0));
console.log("Enums", enums); //Enums: A, B, C, D