Skip to content

Instantly share code, notes, and snippets.

@LFTroya
Created June 24, 2020 19:42
Show Gist options
  • Save LFTroya/65c0f7ba7af937445c91ef748ca8b0b0 to your computer and use it in GitHub Desktop.
Save LFTroya/65c0f7ba7af937445c91ef748ca8b0b0 to your computer and use it in GitHub Desktop.
currentMonths.map(currentMonth => {
const transaction = results.transactions.find(transaction => {
return `${transaction.year}-${transaction.month}` === `${currentMonth.year}-${currentMonth.month}`
});
console.log(transaction.details) // Aqui estan los detalles de ese mes
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment