//In Javascript there are no enum typeSeason = Object.freeze({ Summer: 1, Fall: 2, Winter: 3, Spring: 4});//ECMAScript 6 featurelet values = Object.keys(Season) .map(key => Season[key]);//values is [1,2,3,4]console.log("values is", values);