wwayne/es6-enum

Object.values is not a function?

lordmortis opened this issue · 2 comments

I'm getting Uncaught TypeError: Object.values is not a function from Chrome when I initialise the enums

i'm doing that this way:
const ANSWER_TYPES = Enum('NONE', 'SCALE', 'MULTI_CHOICE');

Which version of nodejs your are using? Weird...I've used this in my project(nodejs < 1.0).
I will take more testa later

@lordmortis Fixed, but make sure you are using nodejs >= 4.0.0 or using babel in your project.