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