export class EnumValues { public keys : number [ ] ; public values : { [ key ] : any ; } ; constructor ( enumObject ) { this . keys = Object . keys ( enumObject ) . filter ( x => ! isNaN ( Number ( x ) ) ) . map ( Number ) ; this . values = enumObject ; } }