3 ms·
I like the runtime generated enum code so that I can be somewhat lazy with generating options for <select> const options = Object.entries(MyEnum).map(([key
by trinovantes 5y ago
I like the runtime generated enum code so that I can be somewhat lazy with generating options for <select>
const options = Object.entries(MyEnum).map(([key, label]) => { key, label })