Let's say I have this class (which I use as an enumeration):
class Color {
static get Red() {
return 0;
}
static get Black() {
return 1;
}
}
Is there anything similar Object.keysto get ['Red', 'Black']?
I am using Node.js v6.5.0, which means that some functions may be missing.
Almis source
share