get key of enum typescript

Solutions on MaxInterview for get key of enum typescript by the best coders in the world

showing results for - "get key of enum typescript"
Daniel
30 Feb 2018
1let enums = Object.keys(SomeEnum).filter(x => x === yourValue));
Tiffany
27 Jun 2016
1let enums = Object.keys(SomeEnum).filter(x => !(parseInt(x) >= 0));
2console.log("Enums", enums); //Enums: A, B, C, D