Create a gist now

Instantly share code, notes, and snippets.

@tai2 /a.js
Created Oct 19, 2016

a.reduce((prev, curr) => (prev[curr.id] = curr, prev), {});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment