I have some data that is in an array that contains url's for images. Here the thing, within the img object of the data object, I want to make as many imgs as the length of the array (Make sense hopefully?). In other words, I just want to create a new object over and over again. What would you recommend as the best approach to solving this problem. I know this seems simple.
var data = [{
title: "asdfadf",
thumb: "images/asdf.jpg",
imgs: [{
title: "asdfasdf ",
thumb: "images/asdff.jpg",
img: "images/asdf.jpg",
},
{
title: "asdf",
thumb: "images/asdf.jpg",
img: "images/asdf.jpg",
},
{
title: "Gasdfafafasfasfasfasf. ",
thumb: "images/asdf.jpg",
img: "images/asdf.jpg",
},
{
title: "aswdf",
thumb: "images/asdfD.jpg",
img: "images/asdf.jpg",
},
]
}];