in javascript (Angular)
trying to convert an array of objects into a csv file
the objects are like
{name:ab, phone:231}
{name:alex,email:[email protected]}
{name: john, phone: 342, email: [email protected]}
how to convert this object to csv so that im not losing any of the fields