Skip to content

Instantly share code, notes, and snippets.

@AzrizHaziq
Created December 10, 2018 08:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AzrizHaziq/715110e820f280fb887d6e7a7a4847f7 to your computer and use it in GitHub Desktop.
Save AzrizHaziq/715110e820f280fb887d6e7a7a4847f7 to your computer and use it in GitHub Desktop.
Part 2 Javascript Tip and Tricks Object Rest Paramater
var greetUsers = users.map(user) => ({
id: payload.id,
name: `Hello ${name}`,
email: payload.email,
phone: payload.phone,
website: payload.website,
company: payload.company,
address: payload.id,
}))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment