Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

get enum key typescript

let enums = Object.keys(SomeEnum).filter(x => !(parseInt(x) >= 0));
console.log("Enums", enums); //Enums: A, B, C, D
Source by www.crojach.com #
 
PREVIOUS NEXT
Tagged: #enum #key #typescript
ADD COMMENT
Topic
Name
8+3 =