https://javascript.plainenglish.io/how-to-convert-a-typescript-enum-to-a-javascript-array-or-string-7a98c9fad17e