I have this array:
var objectArray = [{url:"www.google.com", id: "google"},
{url:"www.apple.com", id: "apple"},
{url:"www.facebook.com", id: "facebook"}];
Is it possible to convert to a JavaScript object that is formed like this:
var newObject = {"google": "www.google.com",
"apple": "www.apple.com",
"facebook": "www.facebook.com"};