Guest User

Untitled

a guest
Sep 28th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. const generations = [['baby boomer', 60],
  2. ['gen x', 50],
  3. ['millenial', 35]];
  4. const genInfo = generations.map( genArray => ((
  5. {
  6. name: genArray[0],
  7. age: genArray[1]
  8. }
  9. )));
  10.  
  11. console.log(genInfo);
Advertisement
Add Comment
Please, Sign In to add comment