Extract Data from Many Array

Hello, i'm still fresh with node-red, i had trouble of extracting array data to csv, i did extract some of it but not all of them, this my array data

What i've done

var arrData = msg.payload.results[0].series[0].values[0];
sensorData1 = [String(arrData[0]),String(arrData[1])]
msg.payload = String(sensorData1)
return msg;

This is the result

1544083448366,290.02

The result is what i expected but the trouble is, the array data is too much, it can reach thousand in some condition, it will be impossible to using my code above, is anybody can suggest how to do this ? Thank you.