Skip to content

Instantly share code, notes, and snippets.

@cristoferdomingues
Created July 10, 2018 14:32
Show Gist options
  • Save cristoferdomingues/4481720e7428a272d3f907f21cd6241f to your computer and use it in GitHub Desktop.
Save cristoferdomingues/4481720e7428a272d3f907f21cd6241f to your computer and use it in GitHub Desktop.
Function which creates an Array from an Object
const arrayToObject = (obj) => Array.from(Object.keys(obj), k => obj[k]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment