内部にいくつかの項目を含む配列があり、そのうちの 1 つは場所です。これらの場所の一部は内部が空で、値がありません。これらの空の場所をすべて取り、関数を実行したいと思います。その方法を知っている人はいますか?
配列は次のようになります。
array=[{user:a,user_id:b,date:c,profile_img:d,text:e,contentString:f,url:g,location:""},
{user:a,user_id:b,date:c,profile_img:d,text:e,contentString:f,url:g,location:""}];