Skip to content

Instantly share code, notes, and snippets.

@nicolasmendonca
Last active July 7, 2019 14:52
Show Gist options
  • Save nicolasmendonca/1009e059e10a55818b817bf7f144135d to your computer and use it in GitHub Desktop.
Save nicolasmendonca/1009e059e10a55818b817bf7f144135d to your computer and use it in GitHub Desktop.
07-2019-context
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