O'Reilly logo
  • Bob Massarczyk thinks this is interesting:

We’ve also learned that we can change arrays into objects by combining Object.keys with Array.map.

From

Cover of Learning React

Note

Nope, you should the other way - objects into arrays. Using Object.keys on an array only gives you the index, which isn't that helpful.