export class EnumHelper { param myEnum param enumValue public static getEnumKeyByEnumValue ( myEnum , enumValue ) { let keys = Object . keys ( myEnum ) . filter ( x => myEnum [ x ] == enumValue ) ; return keys . length > 0 ? keys [ 0 ] : null ; } }