I have array of object and I want to convert this to comma separated object.
let arr = [{name:"k"},{name:"p"}];
console.log(...arr.join(','));
I’m getting this [ o b j e c t O b j e c t ] , [ o b j e c t O b j e c t ]
I want to in this format {name:”k”},{name:”p”}. please help. thanks in advance.