Error:
TypeError: Cannot read property '0' of undefined (line 59)
Here is the script where such an error appears:
Line 59 if (obj_data.data[int_i].entities.urls[0].expanded_url != undefined){
Line 60 array_Expanded_url.push([obj_data.data[int_i].entities.urls[0].expanded_url]);
Line 61 } else {
Line 62 array_Expanded_url.push([""]);
Line 63 }
The idea of if was exactly when the value was undefined, it would define in else the empty value, but this is not happening. Are there any errors in the script visibly that I can't see?