Here I have an array place.reviews but this array is sometimes empty so I need to write a function that first will check array is empty ot not and if not then to go getting data from array...
SO I try:
if (!!place.reviews) for(var i=0;i<place.reviews.length;i++){
contentStr += '<br>'+ place.reviews[i].text+ '</br>';
}
But this code dont work for me?
Is here problem with if (!!place.reviews) or ... ?
place.reviews[0]as condition to if statement.