I have this JSON:
var books = [
{ author: "George Owell", title: "1984", price: 0, page: 328},
{ author: "Jane Austen", title: "Pride And Prejudice", price: 20, page: 279},
{ author: "J.K. Rowling", title: "Harry Potter and the Sorcerer's Stone", price: 23, page: 320},
{ author: "Plato", title: "Apology", price: 0, page: 127},
{ author: "Sigmund Freud", title: "The Interpretation of Dreams"},
{ author: "George Owell", title: "Animal Farm", price: 0, page: 100},
{ author: "George Owell", title: "Omh", price: 0, page: 100},
{ author: "Plato", title: "Aristotle", price: 0, page: 227}
];
Now I want to make a table that outputs author and title. If the author is the same, title will be merged together. For example, "George Owell" will have title "1984, Animal Farm, Ohm.", "Plato" will have "Apology, Aristotle", and so on. How can I do it with jQuery or vanilla JavaScript?