Skip to content

Instantly share code, notes, and snippets.

@nicolasmendonca
Last active July 7, 2019 15:02
Show Gist options
  • Save nicolasmendonca/98bcc4a8e8a613ef05d28f1ae0743dd2 to your computer and use it in GitHub Desktop.
Save nicolasmendonca/98bcc4a8e8a613ef05d28f1ae0743dd2 to your computer and use it in GitHub Desktop.
const response2 = [
{ transactionId: 1, productName: 'Desk' },
{ transactionId: 2, productName: 'Clock' },
];
const requiredResponse2Output = [
{ id: 1, product: { name: 'Desk' } },
{ id: 2, product: { name: 'Clock' } },
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment