Create a gist now

Instantly share code, notes, and snippets.

@tai2 /a.js
Created Oct 19, 2016

What would you like to do?
const result = {};
for (let e of a) {
result[e.id] = e;
}
return result;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment