Skip to content

Instantly share code, notes, and snippets.

@omarkdev
Created February 27, 2020 14:28
Show Gist options
  • Save omarkdev/576be5eb5469f8290d1f2c7e39663556 to your computer and use it in GitHub Desktop.
Save omarkdev/576be5eb5469f8290d1f2c7e39663556 to your computer and use it in GitHub Desktop.
const entries = [ ['name', 'Marcos'], ['site', 'omark.dev'], ['twitter', '@omarkdev'] ];
Object.fromEntries(entries);
// {name: "Marcos", site: "omark.dev", twitter: "@omarkdev"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment