I have string of an array like the following:
let temparr = ['01.10.2019 1570950138 Accounts Receivable 21000 ',
' Retailer Opening 21000 '];
I would like to convert this array like the following json file
const convertedObjectdata = {
'Date': 01.10.2019,
'VoucherNo': 1570950138,
'chartOfAccount: [Accounts Receivable,Retailer Opening]
'CreditAmount': [21000],
'DebitAmount': [21000]
}