I have an object like this:
var person = {
name: "John",
surname: "Smith",
phone: "253 689 4555"
}
I want:
John,Smith,253 689 4555
Is there some easy way?
If possible, could you please provide an example where I can also define the separator?
question from:https://stackoverflow.com/questions/26732123/turn-properties-of-object-into-a-comma-separated-list