-1
I have the return of such an object:
response = {
1: "Julio",
2: "Rubens",
3: "Narciso",
4: "Elton",
5: "Junior"
}
and would like to create an array with all names, e.g.:
array = ["Julio", "Rubens", "Narciso", "Elton", "Junior"]
Note: Sometimes returns more or less names.
What do you mean "Sometimes it returns more or less names"? Could [Edit] the question with the code? - however, tried with
Object.values(response)
?– hkotsubo