I have an object like this:
var person = { name: \"John\", surname: \"Smith\", phone: \"253 689 4555\" }
I want:
You might want to try this library - Underscore.js. It gives you really helpful methods and works across browsers.
Here you can do it like this -
_.values(person).join(",")
or
_.values(person).join("|")