Reputation: 5518
I have this array that's logged like so:
How can I "convert" the array to be simpler, so it outputs like this?
["Acura", "Aston Martin", ...]
Thanks!
Upvotes: 2
Views: 52
Reputation: 4942
Instead of this:
console.log(["Acura", "Aston Martin"]);
Do this:
console.log(JSON.stringify(["Acura", "Aston Martin"]));
Upvotes: 1