If we have a CSV file like this:
`firstName, lastName
Jim, Carrey
Stephen, Colbert`
Papaparse will output the dynamically typed result like this:
{firstName: 'Jim',
' lastName': '30000'}
In order to just get {firstName: 'Jim', lastName...}
PapaParse 5.0.0 has a transformHeaders
option, but there's no documentation on how to achieve this result yet.
Anyone have a transformHeader
snippet that does this?
transformHeader: ((header: string) => { return ... }
– Incommensurate