JSFiddle - React, Tailwind, and code Playground

by Andrey Izman

Babel + JSX

class X {
  static getStatusText(value: string | number): string {
    const all = Object.getOwnPropertyNames(this)
    .filter(prop => typeof this[prop] === "string" && prop !== 'name');
    console.log(all);
  }
}

class Y extends X {
  static A1 = '0';
  static C2 = '1';
  static A3 = '2';
  static X44 = '3';
  static A5 = '4';
  static A6 = '4';
}

Y.getStatusText(X.A1);