Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

get key of enum typescript

let enums = Object.keys(SomeEnum).filter(x => x === yourValue));
Source by www.crojach.com #
 
PREVIOUS NEXT
Tagged: #key #enum #typescript
ADD COMMENT
Topic
Name
5+3 =