Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

typescript get all enum keys

function getEnumKeys(enumParam: any) {
  return Object.keys(enumParam).filter((item) => {
    return item;
  });
}
Source by www.crojach.com #
 
PREVIOUS NEXT
Tagged: #typescript #enum #keys
ADD COMMENT
Topic
Name
7+8 =