Skip to content

Instantly share code, notes, and snippets.

@jamiejohnsonkc
Created February 28, 2020 00:56
Show Gist options
  • Save jamiejohnsonkc/de1b2cc0dc0d06c682b034df4cf21ce9 to your computer and use it in GitHub Desktop.
Save jamiejohnsonkc/de1b2cc0dc0d06c682b034df4cf21ce9 to your computer and use it in GitHub Desktop.
merge javascript objects
const object1 = {
name: 'Flavio'
}
const object2 = {
age: 35
}
const object3 = {...object1, ...object2 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment