How to remove indexes from array, only leaving values?

Viewed 46

I have this array that's logged like so:

enter image description here

How can I "convert" the array to be simpler, so it outputs like this? ["Acura", "Aston Martin", ...]

Thanks!

1 Answers

Instead of this:

console.log(["Acura", "Aston Martin"]);

Do this:

console.log(JSON.stringify(["Acura", "Aston Martin"]));
Related