📜  typescript 遍历枚举 - TypeScript 代码示例

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

代码示例2
function enumKeys(obj: O): K[] {
    return Object.keys(obj).filter(k => Number.isNaN(+k)) as K[];
}