Converting enums to array of values (Putting all JSON values in an array) November 22, 2023 by Tarik Simple solution (ES6) You can use Object.values like this: var valueArray = Object.values(types); Online demo (fiddle)