Skip to content

Instantly share code, notes, and snippets.

@nicolasmendonca
Created July 6, 2019 17:13
Show Gist options
  • Save nicolasmendonca/a1a7358fb93f99a68ef0ec1173f5997f to your computer and use it in GitHub Desktop.
Save nicolasmendonca/a1a7358fb93f99a68ef0ec1173f5997f 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