Answers for "get key of enum typescript"

0

get key of enum typescript

let enums = Object.keys(SomeEnum).filter(x => x === yourValue));
Posted by: Guest on June-02-2021
0

get enum key typescript

let enums = Object.keys(SomeEnum).filter(x => !(parseInt(x) >= 0));
console.log("Enums", enums); //Enums: A, B, C, D
Posted by: Guest on July-16-2021

Code answers related to "get key of enum typescript"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language