Let's say I have this class (which I using like an enum):
class Color {
static get Red() {
return 0;
}
static get Black() {
return 1;
}
}
Is there anything similar to Object.keys
to get ['Red', 'Black']
?
I'm using Node.js v6.5.0 which means some features might be missing.