結果 : how to check every object in array javascript