DEV Community

Discussion on: Convert an array of objects to CSV string in JavaScript

Collapse
 
anders profile image
Anders

It would probably be wise to have a step where you properly encode each value before putting it in a CSV "column", this would break if you have certain characters in your value

Collapse
 
samueldjones profile image
Sam Jones

Good point, Anders!

Collapse
 
jprumekso profile image
Jalu Pujo Rumekso

how do you encode it btw?