Myeishamadkins / Myeisha-Madkins-Web-Rental-Agency

FrontEnd Final Project
0 stars 0 forks source link

No need to unwrap object #1

Open john-terenzio opened 6 years ago

john-terenzio commented 6 years ago

https://github.com/Myeishamadkins/Myeisha-Madkins-Web-Rental-Agency/blob/4cc49c921210162b09f7bcc6dd2c697b7dda1d27/javascript.js#L7-L13

Instead of creating a new object with the exact same keys as PAGE_DATA.moviePosters[i] consider just passing that directly to the template like content += template(PAGE_DATA.moviePosters[i]);...