Skip to content

Instantly share code, notes, and snippets.

@nicolasmendonca
Last active July 6, 2019 17:17
Show Gist options
  • Save nicolasmendonca/569fcad89faf029c9e2241b517b27bcd to your computer and use it in GitHub Desktop.
Save nicolasmendonca/569fcad89faf029c9e2241b517b27bcd to your computer and use it in GitHub Desktop.
const response1 = [
 { id: 1, productName: 'Chair' },
 { id: 2, productName: 'Table' },
];
const requiredResponse1Output = [
 { id: 1, product: { name: 'Chair' } },
 { id: 2, product: { name: 'Table' } },
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment