Skip to content

Instantly share code, notes, and snippets.

@nicolasmendonca
Created July 7, 2019 14:53
Show Gist options
  • Save nicolasmendonca/f3304e28f2f31a86f5f60087a970b775 to your computer and use it in GitHub Desktop.
Save nicolasmendonca/f3304e28f2f31a86f5f60087a970b775 to your computer and use it in GitHub Desktop.
function mapTransactionIdIntoId(transactionsIarray) {
return transactionsIarray
.map( ({ transactionId, ...rest }) => ({
...rest,
id: transactionId,
}) )
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment