Skip to content

Instantly share code, notes, and snippets.

@mekhami
Created May 21, 2018 17:38
Show Gist options
  • Save mekhami/855489344c81c3e845cb9df565ac6b6a to your computer and use it in GitHub Desktop.
Save mekhami/855489344c81c3e845cb9df565ac6b6a to your computer and use it in GitHub Desktop.
return this.variables.reduce((obj, current) => {
obj[current.field] = current.value
return obj
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment