{
filename: 'general-ledger-Q1',
sheet: {
data: [
[{
value: 'Income - Webshop',
type: 'string'
}, {
value: 1000,
type: 'number'
}]
]
}
}
//==>
{
filename: 'general-ledger-Q1',
data: [{
'Income - Webshop': 1000,
'my second column': 'hello',
'my third column': 'world',
},{
'Income - Webshop': 1000,
'my second column': 'hello',
'my third column': 'world',
},{
'Income - Webshop': 1000,
'my second column': 'hello',
'my third column': 'world',
}],
}
This way no processing on the dataset would be required to developer at all, since typically we'd have an array of objects.
Wouldn't the following be much easier to use?
Object.keyson first row or an array can be given into config to consider just specific set of properties in arrayThis way no processing on the dataset would be required to developer at all, since typically we'd have an array of objects.
Great library man 👍🏻