Untitled
unknown
plain_text
a year ago
313 B
3
Indexable
Never
const sumResults = () => { console.log('EXPENSES HERE :', expenses); return expenses .reduce((acc, curr) => { console.log('TESTE :', curr.exchangeRates.USD.ask); return acc + Number(curr.value) * Number(curr.exchangeRates[curr.currency].ask); }, 0).toFixed(2); };