Skip to content

Instantly share code, notes, and snippets.

@matt212
Created March 22, 2019 15:02
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 matt212/893aba33882866f8e99f9ccbeaa318e3 to your computer and use it in GitHub Desktop.
Save matt212/893aba33882866f8e99f9ccbeaa318e3 to your computer and use it in GitHub Desktop.
convert json array to js object
var newObj = internObj.reduce((a, b) => Object.assign(a, b), {})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment