結果 : return true if array of objects has value javascript