-
Values of array
Hi !
Sorry for the noob question, I can’t find a function that works to get all the values of an array
myArray = {
"a":1,
"b":2
};If I do that :
alert(Object.keys(myArray));
I get “a,b”When I do that
alert(Object.values(myArray));
I get an error “Function Object.values is undefined”How do I get “1,2” ?
Thanks a lot