ts enum get key code example Example: get key of enum typescript let enums = Object.keys(SomeEnum).filter(x => x === yourValue));