While map over an object remove the , ?

Looping over an object and it keep adding the , to the dom. I know with an array you can use .replace(). I cant find anything similar for objects.
Was this page helpful?