```row = row.map(function(field) { return '"' + ...
# suitescript
m
Copy code
row = row.map(function(field) {
  return '"' + field.replace(/"/g, '""') + '"';
});
response.write(row.join() + '\n');