I have a multidimensional array that looks like this:
[
Object {href="http://www.somepath.com/car4.png", title="Wheel"},
Object {href="http://www.somepath.com/car.png", title="Top"},
Object {href="http://www.somepath.com/car1.png", title="Side"},
Object {href="http://www.somepath.com/car5.png", title="Saddle"},
Object {href="http://www.somepath.com/car6.png", title="Front"}
]
I'd like to loop over this object and retrieve two comma seperated strings, one for all hrefs and one for all titles. So what I'm after is:
hrefs = "'http://www.somepath.com/car4.png', 'http://www.somepath.com/car.png', 'http://www.somepath.com/car1.png', 'http://www.somepath.com/car5.png', 'http://www.somepath.com/car6.png'";
titles = "'Wheel', 'Top', 'Side', 'Saddle', 'Front'";
Although it seems pretty easy I lack the knowledge and cant seem to find the specific answer.