Skip to content

Instantly share code, notes, and snippets.

@klausbayrhammer
Last active February 21, 2021 21:18
Show Gist options
  • Save klausbayrhammer/3a5c3bd9b1016f4dc8ee25c997d9d949 to your computer and use it in GitHub Desktop.
Save klausbayrhammer/3a5c3bd9b1016f4dc8ee25c997d9d949 to your computer and use it in GitHub Desktop.
single line object initialization
const firstObject = {attribute: 1}
const secondObject = {firstAttribute: 1, secondAttribute: 2}
const thirdObject = {firstAttribute: 1, secondAttribute: 2, thirdAttribute: 3}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment