enum Team {
Attacker,
Defender
}
type TeamKeys = keyof typeof Team; // "Attacker" | "Defender"
let enums = Object.keys(SomeEnum).filter(x => x === yourValue));
enum Status{
Active = 'Active',
Inactive = 'Inactive'
}
let status = STATUS.Active
console.log(status)
output: "Active"